Demo application to demonstrate file read and write in Java