[Tutor] How to close a file opened with csv.write

Michel Bélanger michel.belanger at seidel.ca
Fri Jan 30 09:50:16 EST 2004


how do I close a file that has been opened by csv.writer (with the 
command below)? or how do you released the file from IDLE because it 
cannot be deleted or moved until IDLE gets closed.

fileout = csv.writer(file("contact_mod1.csv", "w"))

Michel Belanger

More information about the Tutor mailing list