Simple file read and write example using JAVA IO