アットウィキロゴ

ppl77

import java.io.*;

public class pro {

public static void main(String[] args) {

int w,h,m,n;
w=232;
h=657;
int memor[][]=new int[h][w];
int memog[][]=new int[h][w];
int memob[][]=new int[h][w];

try{
   BufferedReader br =
     new BufferedReader(new FileReader("test.[[txt]]"));

   String[] test = new String[w*h];
   String str;
String x[]=new String[5];
   for(int i=0; i<w*h; i++){
      str = br.readLine();
  x=str.split(",");    
m=Integer.valueOf(x[0]);
n=Integer.valueOf(x[1]);
memor[m][n]=Integer.valueOf(x[2]);
memog[m][n]=Integer.valueOf(x[3]);
memob[m][n]=Integer.valueOf(x[4]);
   }

   br.close();
}
catch(IOException e){
   System.out.println("入出力エラーです。");
}
}
}
最終更新:2010年10月18日 03:04