in reply to Re^2: Difficulty restraining read function to 32 bits
in thread Difficulty restraining read function to 32 bits

Lets say that there are 31 bits left over in the file

Let's say 24 bits (3 bytes). It's "hard" to store a fraction number of a bytes in a file.

read would return three bytes instead of four for the last read.

jwkrahn points out a real problem too.