Hi Akem,
The problem is in the amount of data you are skipping over, namely this line:
You are skipping the header correctly, but I am willing to bet that the recordLength is either a value you read from the meta-data or its a value that you computed when reading the schema. Am I correct?
If so, you will not have skipped 1 delete flag per record.
When I tried your code originally (I had to make up code for calculating record lengths since I didn't have your code, so my code
might be different) I got the following results:
However the point you are skipping to for the second record (0xEC) is incorrect:
You could try something like this:
However remember that using magic numbers such as adding the "1" there is a bad idea
.
Regards, Andrew