Program takes in a file, and ensures that there is a file for input.