Added throw/catch to read in a file name