Closing a file
Duncan Smith
buzzard at urubu.freeserve.co.uk
Thu Jul 20 18:47:47 EDT 2000
I am using PythonWin. I do try to close the file with outputfile.close()
after the second 'if'. I don't understand why it apparently doesn't work.
ie. I want to open a file and write to it on the first iteration (which it
does), write to it on subsequent iterations (which it does), and close it
after a certain number of iterations (which it doesn't). Thanks for your
help, but I'm afraid I'm still stuck.
More information about the Python-list
mailing list