[Tutor] Is there a file creator?

Thomi Richards thomi@thomi.imail.net.nz
Sat, 7 Sep 2002 19:08:10 +1200


appen mode??

file = open('test.txt','a') 

works...

On Sat, 6 Sep 2003 00:17:27 -0400 (EDT) Thus said Gus Tabares
<gus.tabares@verizon.net>:

> SA,
> 
> 	I think when you open a file in write mode, if the file doesn't
> already exists, it will be created, hence, it will start empty. Hope
> this helps...
> 
> 
> Gus
> 
> On Fri, 6 Sep 2002, S A wrote:
> 
> > Is there a function or module that creates an empty file like the
> > unix command "touch" does?
> >
> >
> > Thanks.
> > SA
> >
> >
> >
> > "I can do everything on my Mac that I used to do on my PC, plus alot
> > more ..."
> >
> > -Me
> >
> > ------------------------------------------------------------
> > Free, BeOS-friendly email accounts: http://BeMail.org/
> > BeOS News and Community: http://www.BeGroovy.com/
> >
> >
> > -------------------------------------------------------------------
> > -- Express yourself with a super cool email address from
> > BigMailBox.com. Hundreds of choices. It's free!
> > http://www.bigmailbox.com
> > -------------------------------------------------------------------
> > --
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor@python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor


-- 
DOS: n., A small annoying boot virus that causes random spontaneous
system
     crashes, usually just before saving a massive project.  Easily
cured by
     UNIX.  See also MS-DOS, IBM-DOS, DR-DOS.
(from David Vicker's .plan)
Thomi Richards,
thomi@imail.net.nz