I'm coding a file ripper for a game (in C), but my problem is that it's just TOOO slow
My method is just: Get a DWORD, compare it with the magic. If it coincides, extract the file. If not, just go back 3 characters and return to scanning.
But If I just do this on Hex Workshop, it gives me the result much faster. What's the secret? Checking it character by character?
The question is just... what's the best way to scan a big file?

