Newbie question: files
William Wallace
wcwallace2 at home.com
Sat May 13 14:30:35 EDT 2000
I open a file "a+"
fd = open(foo, "a+")
I write some lines to it, taking care to flush after each write. I read
some previously written lines by seeking back to them.
However, when I seek back to a previously written line, I cannot update
any part of the line. The updates get written to the end of the file
regardless of current position (known from fd.tell()).
What's up?
--
Bill Wallace
wcwallace2 at home.com
http://www.hex.net/~wallace/
972-242-8911 972-242-3841
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000513/9ca7a0e9/attachment.html>
More information about the Python-list
mailing list