Java Read Files

Java Read Files


Java Read Files 
We can read data from a file with the help of read() method which is found in FileReader class.
We will understand this with the help of an example as follows - 
Example-
Output - 
As we saw in this example using FileReader class and read() method in the class using them we are able to read the file data, and if now we want to write any other data we can write using FileWriter class and write method in that as we saw earlier.