Opening and Closing a File
FileReader inputFile = new FileReader(filename);
// Process the file's contents.
// Close the file now that it is finished with.
catch(FileNotFoundException e){
System.out.println("Unable to open "+filename);
// The file could not be read or closed.
System.out.println("Unable to process "+filename);