Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deleting variables in a file
#3
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.
Antoni
Reply


Messages In This Thread
Deleting variables in a file - by joey7643 - 01-30-2003, 03:02 AM
Deleting variables in a file - by na_th_an - 01-30-2003, 03:08 AM
Deleting variables in a file - by Antoni Gual - 01-30-2003, 04:39 AM
Deleting variables in a file - by Neo - 01-30-2003, 04:12 PM
Deleting variables in a file - by joey7643 - 01-31-2003, 01:50 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)