01-30-2003, 04:39 AM
If it's a file of records:
-Seek the position of the record
-mark the record as empty by overwriting it with an impossible value.
..This way you don't need to rewrite the whole file.
Next time you read the file just remember the impossible value means a deleted record and skip it each time you find it.
-Seek the position of the record
-mark the record as empty by overwriting it with an impossible value.
..This way you don't need to rewrite the whole file.
Next time you read the file just remember the impossible value means a deleted record and skip it each time you find it.
Antoni