Newbie: Problems with File IO

Chris Liechti cliechti at gmx.net
Sun Feb 17 03:02:45 CET 2002


Flavian Hardcastle <deathtospam43423 at altavista.com> wrote in 
news:Xns91B873A49D077AusYourStandingInIt at 210.49.20.254:

> out_file = open("log.txt", "w")
mode 'a' does append (thats the one you want), 'w' starts a new file 
for writing, adding a plus 'a+' or 'w+' opens for read/write

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list