. 1 / ** java.io.BufferedReader the extends Reader 2 * . 3 * Constructors: . 4 * the BufferedReader (Reader in): create a default size of the input buffer buffering character input stream . 5 * the BufferedReader (Reader in, int SZ): Creating a specified buffer size of the input buffer character-input stream 6 * parameters: 7 * Reader in: character-input stream 8 * bed can FileReader, the buffer flow will increase FileReader a buffer, to improve the efficiency of reading the FileReader 9 * method specific members: 10 * the readLine (): read data line 11 * symbol planting row 12 * return value: string contains content, not including the stop character, reach the end of the return null 13 is * using procedure: 14 * 1. Create character buffered input stream object constructor is passed a character input stream 15 * Character buffer 2. input stream object methods read / readLine read text 16 * 3. Release the resources . 17 * / 18 is public static void main (String [] args) throws IOException { . 19 the BufferedReader br = new new the BufferedReader ( new new the FileReader ( "F.: \\ \\ 1.txt FileTest" )); 20 is String len = null ; 21 is the while ((len = br.readLine ()) =! null ) { 22 is System.out.println (len); 23 is } 24 }