Newbie: Problems with File IO

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

Flavian Hardcastle <deathtospam43423 at> wrote in 
news:Xns91B873A49D077AusYourStandingInIt at

> 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>

More information about the Python-list mailing list