no no the file shows up in the same directory as the .py file and i no it works cause i read the text file<br><br><div><span class="gmail_quote">On 8/29/06, <b class="gmail_sendername">Alan Gauld</b> <<a href="mailto:alan.gauld@freenet.co.uk">
alan.gauld@freenet.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>>i do and they have writing but its just not printing it at all
<br>><br><br>How do you know? Where are you looking for the file?<br>Are you sure its not a Path issue?<br><br>Alan G.<br><br><br>> On 8/29/06, Kent Johnson <<a href="mailto:kent37@tds.net">kent37@tds.net</a>> wrote:
<br>>><br>>> Amadeo Bellotti wrote:<br>>> > Ok im trying to create a file that the user chooses the name of<br>>> > and<br>>> print a<br>>> > varible that is a string to the text file. but for some reason
<br>>> > whne i do<br>>> > this code:<br>>> ><br>>> > FILE = open(filename, "w")<br>>> > FILE.write(puzzleanswers)<br>>> > FILE.close()<br>>> ><br>>> > it doesnt write anything does anyone know how to fix it so it
<br>>> > works?<br>>><br>>> I would<br>>> print filename<br>>> print puzzleanswers<br>>><br>>> to make sure you know what should happen.<br>>><br>>> Kent<br>>>
<br>>> _______________________________________________<br>>> Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>>> <a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor
</a><br>>><br>><br><br></blockquote></div><br>