
April 11, 2002
3:04 p.m.
On 11 Apr 2002 at 16:56, Gustavo Niemeyer wrote:
How can you reliably update a file if there's no obvious mapping between file position and character position?
If you're updating a text file, the relation is probably about line position, not file position.
That's in the logical file. In the physical file, there may be 1 or 2 character line endings. Mixed. So knowing I want line 7 doesn't help me seek to it on disk. No Windows programmer ever uses "+" without "b" without regret ;-(. -- Gordon http://www.mcmillan-inc.com/