I have loaded a large binary file into memory and now I want to search for 10101. I was using file.get to return the next hex number and see if it was equal to 0x15. This is not correct as part of my seach pattern (10101) may straggle over two hex numbers.
Does anyone know of a way to find the pattern 10101 in a binary file loaded into memory?
Any help is appreciated.
Does anyone know of a way to find the pattern 10101 in a binary file loaded into memory?
Any help is appreciated.
Comment