I think it is okay to use RandomAccessFile. I used it too.
when you read a flag (using readByte() perhaps) it will return 1 for deleted flag and 0 for valid record.
When the record is deleted, it is not deleted, but the flag value will be marked by 1.
Hope that's help
Jeffry Kristianto Yanuar (
Java Instructor)
SCJP 5.0,
SCJA,
SCJD (UrlyBird 1.3.2) --> Waiting for the result