I am currently learning Java and I need some help creating a binary file. My assignment is to take a textfile, create a binary search tree using the huffman algorithm, and create a textfile with the resulting binary digits.
How I can actually create a binary file with those binary digits instead of the regular binary digits associated with characters?