Java file

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.

Java file

Java file

     


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.