Reading Files

The FileReader class reads text files using the platform's default character encoding and the buffer size. If you need to change these values, construct an InputStreamReader on a FileInputStream instead.

 public FileReader(String fileName) throws FileNotFoundException
 public FileReader(File file) throws FileNotFoundException
 public FileReader(FileDescriptor fd)
Only the constructors are declared in this class. For example,

FileReader fr = new FileReader("36.html");

Previous | Next | Top
Last Modified April 8, 1997
Copyright 1997 Elliotte Rusty Harold
elharo@metalab.unc.edu