File class to check whether a file exists, open and read