アットウィキロゴ

word03

import java.io.*;

public class word03{

int n;
String note[]=new String[1000];


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

word03(){
        try{
            FileReader f = new FileReader("ren.txt");
            BufferedReader b = new BufferedReader(f);
            String s;
n=0;
            while((s = b.readLine())!=null){
n=n+1;
note[n]=s;                
System.out.println(s);
            }
        }catch(Exception e){System.out.println("ファイル読み込み失敗");}
System.out.println(n);
System.out.println(note[1]);
    }

}
最終更新:2011年02月19日 15:58