#deletion technique?
Hi. I think this advice will have to come from some veteran programmer.
What I'm looking for is a method to erase a record from a file. I've
used fwrite to enter many struct records but what do I do if I want to
delete record number 3 for example? I know how to do random access to the
record but can only give the present values a zero or NULL in the case of
a string struct member. The problem is the empty structure still takes up
space and a record number in my file.
The only thing I can think of now is some difficult routine to resave
the file starting from the record to delete. Is there a better way?
Thanks in advance, Henry