allows user to input file from terminal