Saving and loading data to the file is one of the important feature of many applications which requires the programmer to learn how to read from and write to the files. The File class in "java.io" package works with files and directories and it's object represents the name of a file or directory on the host file system. A program, if the file exists, can examine the files attributes and perform various operations like renaming, deleting, reading from and writing to the file.
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Java file
Post your Comment