The first 118 bytes are correct, but all following bytes are 0xCC.Code:int main() { BYTE Header[500]; fstream file_op("C:\\Test.exe",ios::in); file_op.getline(Header,500); for(int i = 0; i < 150; i++) cout<<"\n"<<hex<<(int)Header[i]; return 0; }
It reports bytes 115-120 are: 2E 0D 00 CC CC
The real bytes 115-120 are: 2E 0D 0D 0A 24
Is there a limit, or does anybody know what I'm screwing up?