read input file