大神们帮我看一下这段代码,一直报错,我可是看基础视频敲得啊,找了半天还是没有找到问题所在,,,
import java.io.*;
public class BufferedReader {
/**
* @param args
*/
public static void main(String[] args)throws IOException {
// TODO Auto-generated method stub
FileReader fr = new FileReader("practice.txt");
BufferedReader bufr = new BufferedReader(fr);
String line = null;
while((line=bufr.readLine())!=null){
System.out.println(line);
}
bufr.close();
}
} |
|