Hi, I have been able to parse the data file. But I have one question regarding the 2 byte flag that indicates whether the record is valid or deleted. I am not able interpret correctly: The flag is 2 bytes. If it is deleted record, then it will be stored as 0x8000 (per the assignment). But how can 2 bytes (that is the size of the flag) store 0x8000.
posted 9 years ago
0x8000 is 1000 0000 0000 0000 in binary. That's 16 bits (a short in Java terms).