reads and prints out input file