I am trying to get data from a file which can be anywhere in the file. It works by reading in a block of data at a time and finding the position of the identifier of the required data within that block. The identifier is 'TAG'.
The problem comes when the identifier is in the first block read in. It will miss off the first character (byte) every time, causing data to end up in the wrong variables.
THe code I am using is:
Seek(F, PosEx('TAG', readin16) - 1)
BlockRead(F, tagheader, 10);
I have tried changing the -1 to many different numbers, but I can never get the first byte to be read!
HELP!!!!!!
Gary
The problem comes when the identifier is in the first block read in. It will miss off the first character (byte) every time, causing data to end up in the wrong variables.
THe code I am using is:
Seek(F, PosEx('TAG', readin16) - 1)
BlockRead(F, tagheader, 10);
I have tried changing the -1 to many different numbers, but I can never get the first byte to be read!
HELP!!!!!!
Gary