matz
10/30/2003 8:34:00 AM
Hi,
In message "Problem with seeking in existing files."
on 03/10/30, agemoagemo@yahoo.com <agemoagemo@yahoo.com> writes:
|I'm trying to write a program that will be writing
|data to an existing file, that will not necessarily be
|done in the physical file order. I used mode 'ab+' to
|open the file, as only the 'a' modes allow writing
|without changing the existing file. I am using sysread
|and syswrite to work with the file.
I don't know what platform you are working on. But in general, stdio
does not work well with "a" (append) mode and seeking. It's stdio
restriction.
matz.