Hi Hanna & Richard,
Originally posted by Hanna Habashy:
I am going to write a simple test class to varify all the information.
Excellent. So you probably have already determined the answer to your question...
Originally posted by Hanna Habashy:
Is that mean the flag byte part of the record length or not?
I believe you will find it is not part of the record length.
My copy of the instructions state:
Data section.
Repeat to end of file:
1 byte "deleted" flag. 0 implies valid record, 1 implies deleted record
Record containing fields in order specified in schema section, no separators between fields, each field fixed length at maximum specified in schema information
So according to this, the record is the size as specified in the record length, and the deleted flag is outside of the record and not counted in the size.
Symantically this is correct: the deleted flag
logically cannot be part of the record since you have to read the record to find out whether it exists or not. Getting all metaphysical there
Regards, Andrew