append to a file
Fredrik Lundh
effbot at telia.com
Mon May 22 16:28:43 EDT 2000
Scott Hathaway <slhath at flash.net> 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.
use the "a+" flag when opening the file (or "w+" and seek to the
end of the file). for some more info, see the description of "open"
on this page:
http://www.python.org/doc/current/lib/built-in-funcs.html
hope this helps!
</F>
More information about the Python-list
mailing list