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> &lt;<a href="mailto:alan.gauld@freenet.co.uk">
alan.gauld@freenet.co.uk</a>&gt; 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>&gt;i do and they have writing but its just not printing it at all
<br>&gt;<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>&gt; On 8/29/06, Kent Johnson &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; wrote:
<br>&gt;&gt;<br>&gt;&gt; Amadeo Bellotti wrote:<br>&gt;&gt; &gt; Ok im trying to create a file that the user chooses the name of<br>&gt;&gt; &gt; and<br>&gt;&gt; print a<br>&gt;&gt; &gt; varible that is a string to the text file. but for some reason
<br>&gt;&gt; &gt; whne i do<br>&gt;&gt; &gt; this code:<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; FILE = open(filename, &quot;w&quot;)<br>&gt;&gt; &gt; FILE.write(puzzleanswers)<br>&gt;&gt; &gt; FILE.close()<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; it doesnt write anything does anyone know how to fix it&nbsp;&nbsp;so it
<br>&gt;&gt; &gt; works?<br>&gt;&gt;<br>&gt;&gt; I would<br>&gt;&gt; print filename<br>&gt;&gt; print puzzleanswers<br>&gt;&gt;<br>&gt;&gt; to make sure you know what should happen.<br>&gt;&gt;<br>&gt;&gt; Kent<br>&gt;&gt;
<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>&gt;&gt; <a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor
</a><br>&gt;&gt;<br>&gt;<br><br></blockquote></div><br>