closed the input and output files