Quote Originally Posted by "BumbleBee" View Post
All I get are some strange chars,or a string "MZP" in console....
Which is the ascii representation of the file [All EXE files start with the letters 'MZ'], so you have already managed to read the file. All you need to do is convert your ascii into hex or binary. See the docs on how to do that or write your own conversion function.