FileReader : FileReader « File « Java Tutorial

  1. The FileReader class is a subclass of InputStreamReader
  2. The FileReader class is a convenient class to read characters from a file.
  3. The FileReader class uses an encoding other than the default one.

To construct a FileReader object:

public FileReader (File file)
public FileReader (FileDescriptor fileDescriptor)
public FileReader (String filePath)

11.30.2.Use a FileReader to display a text file.
11.30.3.Read the file one buffer at a time
11.30.4.Read file upside down
11.30.5.Loading text from a file
11.30.6.Wrap FileReader with BufferedReader