Reading Data from a File
This chapter discusses Java's FileReader and BufferedReader classes in detail. FileReader and BufferedReader classes are used together when reading data from an external file. The use of the BufferedReader class allows data to be buffered as it is read from a file before manipulating it. The readLine() method of the BufferedReader class reads a line of text from a character-oriented input stream, and puts it into a new String object.
1. Reading from Text Files
- FileReader and BufferedReader
- Text file copy program
- C-style input loop
What is the ancestor class of all character-oriented input streams?
Source: Bradley Kjell, http://programmedlessons.org/java5/Notes/chap84/ch84_1.html
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License.