package delta;
import tool.*;
import java.io.*;
public class pro {
String[] data=new String[5000];
int s,datanumber;
String[] subdata=new String[500000];
public static void main(String[] args) {
pro te=new pro();
}
pro(){
int tr=1;
int sx=1;
for(tr=1;tr<24;tr++){
readfile sub=new readfile();
sub.makedata("gdata/"+tr+".txt","UTF-8");
data=sub.data;
datanumber=sub.datanumber;
subdata[1]="credit,"+data[1];
for(s=2;s<datanumber+1;s++){
sx=sx+1;
subdata[sx]="c"+tr+","+data[s];
}
}
datanumber=sx;
writexml("ren.txt");
}
void writexml(String file){
int s,sx;
try{
PrintWriter pw = new PrintWriter (new BufferedWriter(new FileWriter(file)));
for(s=1;s<datanumber+1;s++){
pw.println(subdata[s]);
}
System.out.println("ファイルに書きこみました。");
pw.close();
} catch(IOException ep){ System.out.println("入出力エラーです。"); }
}
}
最終更新:2016年12月31日 20:47