import java.io.*;
public class A {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File("d:/1.txt"))));
String str = null;
while ((str = br.readLine()) != null) {
System.out.println(str);//针对这个字符串我可以做很多的事
}
}
}
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File("d:/1.txt"))));
String str = null;
while ((str = br.readLine()) != null) {
System.out.println(str);//针对这个字符串我可以做很多的事
}
}
}