in reply to Shifting the top line(s) of a file?
i believe it is the nature of filesystem
even some SQL database does not actually "cut" a line/record if you delete/remove it, it just rewrites that line with straight whitespace, remember that line, insert data onto that line the next time someone writes something to it
the only way seems to be using fixed length record to store your data, and in the ideal case using a few seek() can get you to the line