Huffman file I/O