Re: FILEMAN.E

new topic     » goto parent     » topic index » view thread      » older message » newer message

Suggestion

When you delete a record just overwrite a ~ (tilde) character

over the first position in the deleted record. To compact the file

all you have to do is find the first record in file that begins

with ~ (tilde) and over write it with the next record if that record

is deleted skip to the next record and etc. I hope you understand

what I mean. This would be done in a buffer in memory and

would be fairly fast. You could also use a filter that reads

in a file and outputs a file while skiping the ~ (tilde) records.

The advantage is speed, easy way to delete, and it doesn't cost a byte.

Hope you feel better soon

Bernie


a good record until all deleted records are removed. By the way

if

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu