Alright, I have a file opened, read into a buffer, and closed. I need to search the file for this string of bytes:
The FD is an assembly code to load something, but that's not important here. The XXXXXX and YYYYYY are values that are unknown and YYYYYY will need to be changed according to something else later. Now, I have the file loaded up as a binary, and can even easily do a hex dump of this file to a .txt file, so I know it's in the right format to look for bytes in Hex.
My problem is, I don't know how to search a file for a specific byte, and worse, I don't know how to look for a string with unknown gaps in the middle... probably an (if data in address for FD + 4 is 06) I need to search the entire file for every instance of this. If I can make this any more clear, please tell me. Thanks
EDIT: I don't know if this site is specifically C++ or what, but this is a C++ program.