import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
class ThreadDemo{
public static void main(String[] args) throws IOException{
BufferedReader fr=new BufferedReader(new FileReader("a.txt"));//a.txt代表芹模首岩文件嫌芹缓
String line=null;
while((line=fr.readLine())!=null){
System.out.println(line);
}
}
}