Reading 4 bits

onepieceking

Well-known member
Joined
Sep 20, 2006
Messages
64
Programming Experience
1-3
Hi,

I have a file stream and from which, i need to read its contents by 4 bits each time.

I know if i use binaryreader, i can read a byte (8 bits).

How can i read 4 bits at a time?

Thanks in advance
 
You must read the bytes (or at least one full byte) from stream, then you can work with BitArray class.
 
Back
Top