Many Java/JEE applications require configuraiton stored in file to be loaded in application. Here is an example to read property file in Java.
Java provides many APIs to perform different file operations. Here we cover code example to append file in Java 6.
As a Java programmer, we have to many times write code for reading text file in java. Here is an example using java.io.FileReader to read file line by line.