using python to append a file

Thanh Le tle at firstlinux.net
Tue Jul 3 15:13:41 EDT 2001


I am new to Python and was wondering if anyone could show me a way to
append a file (similar to the way Unix does by using >> ). I've tried
using open('file','r+') method and it overwrote whatever i had in that
file. I am sure there is a way to append a file, but  havent had much
luck.
Thanks in advance,
Thanh



More information about the Python-list mailing list