package tokai;
import tool.*;
import java.io.File;
public class pro {
int s,datanumber;
String[] data=new String[500];
String[] subdata=new String[50000];
public static void main(String[] args) {
pro re=new pro();
}
pro(){
File d=new File("data");
String[] f=d.list();
int n=0;
for(n=0;n<f.length;n++){
readfile sub=new readfile();
sub.makedata("data/"+f[n],"utf-8");
data=sub.data;
datanumber=sub.datanumber;
int p1=f[n].indexOf("(");
String nx=f[n].substring(0,p1);
int p3=f[n].indexOf("(",p1+1);
if(p3>0)p1=p3;
int p2=f[n].indexOf(")",p1);
String cc=f[n].substring(p1+1,p2);
for(s=1;s<datanumber+1;s++){
n=n+1;
subdata[n]=nx+","+cc+","+data[s];
}
}
writefile sub2=new writefile();
sub2.data=subdata;
sub2.datanumber=n;
sub2.makedata("ren.csv");
}
}
最終更新:2018年02月24日 06:51