Open a file in a function and write to it
<p>I created the function below:</p>

<pre><code>def print_form(x):
    f = open('/home/rv/Plone/Zope-2.10.11-final-py2.4/Extensions/test.fasta', 'w')
    f.write(str(x))
    f.close()
    return x
</code></pre>

<p>The function returns and prints, but doesnt write it to a file or creates it?</p>

<hr>

<p><strong>EDIT</strong></p>

<p>I editied the above code the so the file is created in a specific location but it still isnt there</p>
