hiii... I am trying to implement the huffman algorithm for compression.. for that I have to write bits of variable length to a file.. is there any datatype in c++ to store bits in a file????
i tried using bitset<8> but its size is 4 bytes..so i cant use it since i am implementing compression..please help..