Hello, The question is above: when will these file be closed? for s in file('/etc/passwd'): print s file('/home/mage/test.txt','w').write('foo') Mage