Paul Rubin wrote: > John Salerno <johnjsal at NOSPAMgmail.com> writes: >> Interesting. So I would say: >> >> [line.rstrip() for line in open('C:\\switches.txt')] How would I manually close a file that's been opened this way? Or is it not possible in this case? Is it necessary?