Hii Folks,

I am working on Huffman Encoding for compression.In order to reduce the size of files(effectively compress them) I need to replace each character by their coreesponding huffman code.So its highly likely that an 8 bit character by 2-3 bits.

I was wondering if anybody of you could help in writing bit by bit on a file.