On Apr 5, 5:20 am, Steve Holden <[EMAIL PROTECTED]> wrote: > 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? >
My text file was writable. -- http://mail.python.org/mailman/listinfo/python-list