Aug 29, 2007, 9:37 PM
Post #1 of 1
Updating Binary Files With variable record length
I have a binary file with "records" of variable lengths. Each record ends with a '\n'. I am trying to find a nice solution for updating records. To update a record, should I split the file at the record position, write my record, and merge the split files? Could you please suggest something?
I cannot make the records of fixed size, otherwise updating would have been really easy.
thanks a lot,