Huffman Coding. Decode from binary file
<p>Huffman Coding task.</p>

<p>what I doing. 
Read string from file, prepare Huffman structure, encode string to bits and save that bits to binary file. </p>

<p>What I need:
Decode string from binary file but encoding and decoding must be independent. After closing app for e.q.</p>

<p>I saving to binary file like that:</p>

<pre><code>A:000;l:001;a:10; :110;m:010;k:011;o:1110;t:1111;
00000110110010101100111110111110;
</code></pre>

<p>And need to read it and decode. So I think I need to build Huffman structure again from that but how? </p>