Well Greetings ,
I have found the solution to my problem of reading bits from a byte, so i am posting it here. The solution is the fread() and fwrite() Functions. we can read one byte at a time from them. If we store this byte in a bit structure with 8 bitfields. Then we can use the '.' operator and refer to individual bits in a byte. This way there is no need for modulation or masking of bits,

Regards.