Yes, you use a different 'open' mode. See this documentation:
http://www.python.org/doc/current/lib/built-in-funcs.html#l2h-179
Instead of:
outfile = open ('foo', 'w')
you want to use:
outfile = open ('foo', 'a')
or:
outfile = open ('foo', 'ab')
That's 'a' for 'append'. You may want to use 'ab' for WindowsNT.
That's 'append binary'.
Yours,
Noah
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2001 5:54 AM
To: [EMAIL PROTECTED]
Subject: Antwort: ActivePython digest, Vol 1 #72 - 4 msgs
Hi! Are there any "write append" methods for file objects in Python? I can´t imagine
that one one have to read and store the file
contents in a container on to add to the container and RE-write to the original file
Best regards Sharriff Aina
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython