package pdf2;
import tool.*;
import java.util.Calendar;
public class pro {
int s,datanumber;
String[] data=new String[5000];
String[] subdata=new String[5000];
int y1,m1,d1,w1;
int y2,m2,d2;
String[] sta=new String[5000];
String[] delta=new String[500];
String[] p=new String[500];
String[] t=new String[500];
String[] d=new String[500];
public static void main(String[] args) {
pro te=new pro();
}
pro(){
int tr=2546;
for(tr=2583;tr<2764;tr++){
readfile sub=new readfile();
sub.makedata("tv/"+tr+".txt","UTF-8");
data=sub.data;
datanumber=sub.datanumber;
String date="";
for(s=1;s<datanumber+1;s++){
String[] x=data[s].split("△");
x[2]=x[2].replace("*","");
x[2]=x[2].replace("%","");
p[s]=x[2];
t[s]=x[3];
sta[s]=x[1];
sta[s]=sta[s].replace("【","");
sta[s]=sta[s].replace("】","");
x[0]=x[0].replace("視聴率】","");
x[0]=x[0].replace("【","");
x[0]=x[0].replace("/",",");
d[s]=x[0];
}
for(s=1;s<datanumber+1;s++){
System.out.println(d[s]+","+sta[s]+","+t[s]+","+p[s]);
}
}
}
}
最終更新:2017年01月22日 18:49