7stud wrote: > On Apr 4, 10:22 pm, [EMAIL PROTECTED] wrote: >> how did you generate aaa.txt? > > Ok, I got it to work by supplying a filename that didn't previously > exist. Neither the book I am reading, "Beginning Python: From Novice > to Professional" nor the book I am using as a reference, "Python in > Nutshell", happens to mention that important fact. > > It seems to make sense that you have to open a file as writable in order to be able to change its contents, though, doesn't it?
regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden Recent Ramblings http://holdenweb.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list