append to a file

Fredrik Lundh effbot at
Mon May 22 17:31:06 EDT 2000

Thomas Wouters <thomas at> 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