hello everybody,
i'm trying to read binary data from an input file and store their bit by bit representation in an int array for further manipulation:
- using the file.read(buffer,1) to retrieve my first byte of data
- using unsigned char mask (for ex 0x80 = 1000 0000) i'm trying to AND it with my buffer in order to get my MSB, but i dont know how to retrieve the remaining bits. On the other hand my buffer type should it be char or unsigned char cause i repeat my data is recieved in binary from a transciever.