I am content on how to read a single 512 byte block in recover, however I'm extremely confused on how to go through the rest of the blocks of the memory card i.e can you do this using fread?
I was trying to see how big the card.raw file was using sizeof but that doesn't work.
I know that:
BYTE *memblock = malloc(512); int filesize = fread(memblock, 512, 1, file);
will read the first block of data into memblock that I can look at. However I have no idea how to obtain the number of elements I want to look at to the amount that is contained on the file and then step through them. Once I know how to do that I know I should be able to complete the rest of it. But this is stumping me.