close the input file at the end of readFile