[Tutor] File IO

Amadeo Bellotti amadeo.bellotti at gmail.com
Tue Aug 29 23:06:35 CEST 2006


Ok im trying to create a file that the user chooses the name of and print a
varible that is a string to the text file. but for some reason whne i do
this code:

FILE = open(filename, "w")
FILE.write(puzzleanswers)
FILE.close()

it doesnt write anything does anyone know how to fix it  so it works?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060829/0c8199af/attachment.htm 


More information about the Tutor mailing list