Opening New files

Ignacio Vazquez-Abrams ignacio at openservices.net
Mon Aug 20 14:32:43 EDT 2001


On Mon, 20 Aug 2001, Mikhael Loo wrote:

> What code do you used to open a new file.  I've been opening existing files
> on MSW but I'm having trouble with my files and I think  that I may need to
> use something besides open() if the file doesn't already exists.
>
>   -Mikhael

Passing 'w' or 'wb' will create a new file or truncate an existing file and
return a write-only file object.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list