Java Reference
In-Depth Information
Using a FileReader
The FileReader class creates a Reader that you can use to read the contents of a file. A
commonly used constructor is shown here:
FileReader(String fileName ) throws FileNotFoundException
Here, fileName is the full path name of a file. It throws a FileNotFoundException if the
file does not exist. FileReader is derived from InputStreamReader and Reader . Thus, it
has access to the methods defined by these classes.
Search WWH ::




Custom Search