This is your lucky day -- I gave you positive instead of negative rep for bumping a 4-year-old thread
If you only read one byte into a 4-byte integer that would make the integer not worth shit. You can't do it like that (at least so that it will produce a valid integer). First read the byte into a char variable, then typecast the char into the integer. The sizeof operator will still work because sizeof(char) = 1.
Last edited by Ancient Dragon; Feb 4th, 2010 at 12:30 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Offline 21,966 posts
since Aug 2005