Added fstream functionality, with an error message if the file inputted in the command line cannot be found