I created a data file using a rewirite() precedure call followed by a set of write() procedure calls and finally a close() precedure call. At this point everything is Ok.
When I try to access the file in a Random way I have a problem.
I open the file using reset() procedure call, then I can do any number of seek() + read(). No problem.
If I try to seek() + write() sequence it apears no problem, but then I do a seek() + read, no right data are in a record. Still is the data I have written previously.
I have a question. Can I do seek()+read() and seek()+write() on a data file without close() the file between them?
Thanks in advance for your time. edgar
|