How do I write bits to a file( for Huffman Tree compressing)
My current program just creates the tree and prints out the character along with the shortened code. This of course is much longer than the original file.
"the" => "101000100" or something like that.
I'm not sure what the next step is though, FileOutputStream can write bytes to a file...but I don't think you can actually control it...
out = FileOutputStream (file)
if (next char is equal to "e")
if (next char is equal to "z")