Delete records from a text file
Posted on 2002-04-18
I have a text file that writes records 65 characters across then carriage returns and starts a new record.
I need to read that text file and delete an entire record, if it does not meet a verification check.
How do I do this without rewriting the entire file?
Because these records could be in the middle, I don't want to have to read and recreate every text file excluding the records that don't meet the verification.
Is there a way just to delete that record from the text file without rewriting the whole text file to not include the record?