posted 20 years ago
To delete a record, you update the DB file so that the delete flag for that record indicates it's deleted. On my assignment this means I change the very first byte of the record from 0x00 to 0x01 - that's it. (Other assignments may use different values, and manybe two bytes instead of one, but the idea is the same as far as I know.) No other change is necessary; the record is considered "deleted" even though the remaining bytes are still there. If the record is requested in the future, the application checks the delete flag and throws RecordNotFoundException if the record is marked deleted. So "marking the record" means "deleting the record" as far as the DB file is concerned.
"I'm not back." - Bill Harding, Twister