append to a file

Bjorn Pettersen bjorn at roguewave.com
Mon May 22 16:40:52 EDT 2000


Open the file for appending:

   f = open('file', 'a')

-- bjorn

Scott Hathaway wrote:
> 
> How do I append to a file instead of overwriting it?  I searched on the
> python website and got a hit, but the link was bad.
> 
> Thanks,
> Scott
> 
> --
> http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list