Newbie: Problems with File IO

Flavian Hardcastle deathtospam43423 at altavista.com
Sat Feb 16 21:24:44 EST 2002


Chris Liechti <cliechti at gmx.net> wrote in 
news:Xns91B81F8828230cliechtigmxnet at 62.2.16.82:

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

Thanx! That's got me a bit further. What part of the standard Python manual 
(the html one you get at Python.org) would that be under?

Also, if you could give me a hint as to how I might get the script to 
remember people's usernames everytime they post, that'd be good.

-- 
"You can tell whether a man is clever by his answers. You can tell whether 
a man is wise by his questions."  Naguib Mahfouz

netvegetable at dingoblue.net.au



More information about the Python-list mailing list