Home » java » Reading a text file

Reading a text file

For reading a file we have to create a FileReader object.
Then we create BufferedReader object of FileReader.
If file not found FileReader constructor throws FileNotFoundException.
If br.readLine() is not able to read source file it throws IOException.

Managed by MochaHost - Fast & Easy WordPress Hosting