How to open and .EXE and print its contents as hex code to a text file C++ ?

closed account (3hMz8vqX)
Hi all,
How to open and .EXE and print its contents as hex code to a text file C++ ?
can anyone please give me a
simple code snnipet ???
also I would like to know how to read the text file that contains the hex code and compare it
with a value stored in an int variable ...
Thankyou everyone in advance...:)
You already have an existing topic about this here:
http://www.cplusplus.com/forum/windows/112124/
Please do not double post.
Topic archived. No new replies allowed.