[Tutor] File IO
amadeo.bellotti at gmail.com
Tue Aug 29 23:34:08 CEST 2006
i do and they have writing but its just not printing it at all
On 8/29/06, Kent Johnson <kent37 at tds.net> wrote:
> Amadeo Bellotti wrote:
> > 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?
> I would
> print filename
> print puzzleanswers
> to make sure you know what should happen.
> Tutor maillist - Tutor at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor