アットウィキロゴ

chら

import java.io.*;

public class pro{

int n,datanumber,articlenumber;
String[] data=new String[50000];
int s,sx;
String[][] word=new String[1000][5000];
int[] wordnumber=new int[1000];

public static void main(String[] args){
pro test=new pro();
}

pro(){        

readfile("170.txt");

articlenumber=datanumber;
for(s=1;s<articlenumber+1;s++){
String[] x=data[s].split(",");
wordnumber[s]=x.length;
for(sx=0;sx<x.length;sx++){
word[s][sx+1]=x[sx];
}
}


for(s=1;s<articlenumber+1;s++){
for(sx=1;sx<wordnumber[s]+1;sx++){
System.out.println(word[s][sx]);
}
}





}

void readfile(String file){

String str;
BufferedReader br;
int s;
s=0;

try {
br = new BufferedReader(new InputStreamReader(new FileInputStream(file),"SJIS"));  
while((str = br.readLine()) != null) {  
s=s+1;
data[s]=str;  
}
br.close();
} catch (IOException e) {System.out.println(e);}
datanumber=s;

}








}
最終更新:2011年06月12日 02:44