<br>I use the idiom "for line in file('filename'): do_something(line)" quite a lot.<br><br>Does it close the opened file at the end of the loop, or do I have to explicitly save the file object and close it afterward?
<br><br><br>Yoav<br>