8.3: Reading Data from a File
Read this chapter.
This chapter explains the Java I/O API and discusses Reader classes in detail. The second page shows ReaderStream class hierarchy. FileReader and BufferedReader classes are used together when reading data from an external file.
The use of BufferedReader class allows data to be buffered as it is read from the 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.
Attempt this ungraded quiz.