append to a file

Fredrik Lundh effbot at telia.com
Mon May 22 23:31:06 CEST 2000


Thomas Wouters <thomas at xs4all.net> wrote:
> > use the "a+" flag when opening the file (or "w+" and seek to the
> > end of the file). 
> 
> Eep, no, do not use 'w+'. It'll truncate the file!

eep, indeed!  time to get myself a new keyboawd...

unproductive-ly yrs /F




More information about the Python-list mailing list