I'm working on Huffman compression and ı need to write a file as a bit and it must include my bits in program.How can ı do this in c++ ?
By the way ı tried every solutions in the web and asked lots of form but ı couldnt fine anything
I'm working on Huffman compression and ı need to write a file as a bit and it must include my bits in program.How can ı do this in c++ ?
By the way ı tried every solutions in the web and asked lots of form but ı couldnt fine anything
Blockwise: Append your bitsets to a buffer and write bytes, words or even larger portions from the buffer to the file. There is no bitwise file access in C++.
Have a look at bitset and this question.