create a text file

Fredrik Lundh fredrik at pythonware.com
Tue May 30 12:56:39 EDT 2006


Max Erickson wrote:

>> # w is for writing
>> myfile = open('theoutfile',w)
> 
> That won't work, the second argument to open needs to be a string:

w = 'w'

</F>




More information about the Python-list mailing list