title: Writing files in bit form to a file in C
body: <p>I am implementing the huffman algorithm in C. I have got the basic functionality down up to the point where the binary codewords are obtained. so for example, abcd will be 100011000 or something similar. now the question is how do you write this code in binary form in the compressed file. I mean if I write it normally each 1 and 0 will be one character so there is no compression. </p>
  
  <p>I need to write those 1s and 0s in their bit form. is that possible in C. if so how?</p>