reading contents of input file