Hi, any help would be appreciated.
I am opening a binary file using an input filestream, and need to read in the first octet of bits (one byte?) to perform operations on.
Is there any way to just read in 8 bits? I tried doing this by reading in a 'char', but then realised that a char does not suffice as some combinations of binary numbers do not translate to a char.
Thanks in advance.
I am opening a binary file using an input filestream, and need to read in the first octet of bits (one byte?) to perform operations on.
Is there any way to just read in 8 bits? I tried doing this by reading in a 'char', but then realised that a char does not suffice as some combinations of binary numbers do not translate to a char.
Thanks in advance.