I am trying to read through a .dat file looking for the particular HEX signature 00 02 00 using C. when it finds the signature it needs to copy 744 bytes from the start of the signature to a buffer.
I have tried various ways including reading into a buffer and using (strtol/strtok/fscanf) and i am running out of options.
Here is an example of the dat file and here is what the 00 02 00 looks like in ASCII .☻.
AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB 00 02 00 AB AB AB AB AB 00 00 00 00 00 00 00 00 00 00 00
any help or suggestions would be highly appriciated.