input file from terminal