deleting random access

Once a record is put into a random access file

how do you delete it. I know how to clear it so it contains

no data, but the record is still there even thought it is empty.

Any ideas?

Thanks


URL:http://www.expectingrain.com

Comments

  • I use something like:

    I read all all non-blank records into an array, close then reopen the file for output to set it's length to zero, then close and reopen to random and put the records back. I know it's long and round-about and a pain, but it's the only way I've figured out how to do it.


    Hope this helps!


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories