Re: Compacting a Random created file

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Pop`" <nodoby@xxxxxxxxxxxxxxxxxxx> wrote
Good thoughts, Jim.

If you need to compact, scan forward to a record maked 'unused', then
scan backward from the end for a valid record, and swap the two in
the file. Do that until the scans meet -- then all the unused records
are at the end and can be trimmed off.

2nd clue: Compare this explaination with the code I provided....

;-)
LFS


.