package tankan;
import java.io.File;
import tool.*;
public class pro {
int s,datanumber;
String[] data=new String[50000];
String[] code=new String[50000];
String[] name=new String[50000];
public static void main(String[] args) {
pro test=new pro();
}
pro(){
File g=new File("data");
String[] f=g.list();
int sx,tr;
sx=0;
for(tr=0;tr<f.length;tr++){
readfile sub7=new readfile();
sub7.makedata("data/"+f[tr], "SJIS");
data=sub7.data;
datanumber=sub7.datanumber;
String str=data[1];
String[] x=str.split(",");
str=data[2];
String[] x1=str.split(",");
for(s=1;s<x.length;s++){
sx=sx+1;
code[sx]=x[s];
name[sx]=x1[s].replace("\"","");
}
}
datanumber=sx;
for(s=1;s<151;s++){
data[s]=code[s];
}
System.out.println(datanumber);
writefile sub5=new writefile();
sub5.data=data;
sub5.datanumber=150;
sub5.makedata("ren.txt");
sx=0;
for(s=151;s<datanumber+1;s++){
sx=sx+1;
data[sx]=code[s];
}
datanumber=sx;
writefile sub6=new writefile();
sub6.data=data;
sub6.datanumber=datanumber;
sub6.makedata("ren2.txt");
}
}
最終更新:2015年08月22日 15:51