日期:2014-05-20 浏览次数:20603 次
FileReader fr = new FileReader("c:/mydoc/hello.txt"); BufferedReader br = new BufferedReader(fr); //下面这句错了吗? while (String str2 = br.readLine()!= null) { System.out.println(str2); str2 = br.readLine(); } fr.close(); br.close();