hi, I am trying to do something with particular bytes in a file, be it an .exe or .txt or any other kind, and I seem to have run into a problem. I'm using this code to get in the byte:
but things go crazy when it converts it into a integer, or a character. Could anyone help with the conversion. IE: I know that a 'A' equals 65, and a 'a' equals 97, but what about the other bytes you would find in a .exe, and are there negative numbers for half of them? thanksCode:char buffer[1]; ... ifstream J ("data.exe", ios::in | ios::binary); J.read (buffer, 1);