Hello, i have assignment and i have problems with completing it. I have to make a class with functions, to read from a text file byte by byte, and read every bit for every byte. I menage to make the function to read every byte but i have no idea about the bits of that byte. Can you suggest me a method to do that ? thanks in advance
You can use the binary operators to read the bits from a byte.
operator& and operator<< should be enough to fetch the bit value for a certain position in the byte.