You do not open a File when creating an instance of the File class.
The class File is merely information about a file. Like its name, size and other useful data.
A file is opened when you create a...