From: Raf Coremans Date: 2007-05-16T06:44:52+09:00 Subject: Re: [QUIZ] Huffman Encoder (#123) 2007/5/15, Ball, Donald A Jr (Library) : > I also tried writing a binary encoder which packs > and unpacks the bit strings generated by my string encoder, but it fails > to decompress the entire text for long files, e.g. the program source > code itself. I'm unsure why, perhaps someone more experienced in this > arena can suggest why. Perhaps because the file you want to encode already contains your end-marker. The decoder stops when it encounters the first end-marker (line 161). A binary file would not be unlikely to contain a NULL character somewhere. Regards, Raf