Uses methods in the File class to check the status of a file