Introduction
The File class static methods help you work with files easily without creating objects. You can create, read, write, copy, and delete files quickly.
When you want to read the contents of a text file to show it on screen.
When you need to save some data into a file for later use.
When you want to copy a file from one folder to another.
When you want to check if a file exists before using it.
When you want to delete a file you no longer need.