How can I insert or delete a line (or record) in the middle of a file?
Short of rewriting the file, you probably can't. The usual solution is simply to rewrite the file. (Instead of deleting records, you might consider simply marking them as deleted, to avoid rewriting.) See also questions 12.30 and 19.13.
Read sequentially: prev next up top
This page by Steve Summit // Copyright 1995 // mail feedback