Use `with` when opening input file