点石互动

导航

 
Java代码 复制代码 收藏代码
  1. import java.io.*;
  2. public class Test {
  3. String s=null;
  4. try{BufferedReader br=new BufferedReader(new FileReader("D:/tester1.txt"));
  5. while((s=br.readLine())!=null) {
  6. System.out.println(s);
  7. }
  8. }
  9. catch(FileNotFoundException ee) {
  10. }catch(IOException e) {
  11. }
  12. br.close();
  13. }
  14. }  
posted on 2013-02-10 19:12  点石互动  阅读(133)  评论(0编辑  收藏  举报