Here is some of the code I have - My issue is in the generateTable() function:
I have created a Huffman Code tree and I want to output each node's location so that it appears like so:
10 111100
32 110
33 1010110110
34 10101111
38 01100110110101110011
39 1110101011
40 1010110111011101
41 011001101101010
Why won't that function write to the file properly? (I ask because that code was provided to me by my professor and I don't understand the problem.) When I open the file it is empty.