Use "with" to open and close input files