package IO;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* java,io.BufferedReader
* 缓冲字符输入流,特点时可以按行读取字符串
* @author 清风已来
*
*/
public class BufferedReader_readLine {
public static void main(String[] args) throws Exception {
/*
* 将当前类的源代码内容输出到控制台
*/
FileInputStream fis =new FileInputStream("写当前目录下的文件路径");
InputStreamReader isr =new InputStreamReader(fis);
BufferedReader br= new BufferedReader(isr);
String line =null;
while((line=br.readLine())!=null) {
System.out.println(line);
}
br.close();
}
}