- May
- 13,126
- 180
I'm using @FILEREADB to try to find (hex) 68 FF FF FF FF in a file. Reading 5 bytes at a time, and checking for (decimal) 104 255 255 255 255 works but is quite slow. I could read more and look for that string with @INDEX but if it's found, determining a position in the file would be quite hard. Is there a built-in way to turn @FILEREADB's output into 2-digit hex?
I'll post a suggestion that @FILEREADB be given an optional 3rd parameter ([,h]) indicating that its output should be 2-digit hex (00 - FF).
I'll post a suggestion that @FILEREADB be given an optional 3rd parameter ([,h]) indicating that its output should be 2-digit hex (00 - FF).