public class Test06 {public static void main(String[] args) {try (//输入流FileReader fileReader = new FileReader("E:\\IdeaProjects\\aliang\\day03.txt");//输入缓冲流BufferedReader bufferedReader = new Buffere
显然,这是两个“字符流”,“Buffered”显示它们和缓存有关,所以“BufferedReader”是带有缓存区的字符输入流,“BufferedWriter”是带有缓存区的“字符输出流”。 下面是一个BufferedReader的例子 public class BufferedReaderTest01 {public static void main (String[] args) thro