Huffman uses three files: MakeCode, Encode, and Decode
- Run MakeCode
- Enter input file name. (eg. hamlet.txt)
- Enter output code file name. (eg. code.code)
- Run Encode
- Enter input file name. (eg. hamlet.txt)
- Enter code file name. (eg. code.code)
- Enter output compressed file name. (eg. hamlet.short)
- To decode compressed txt file, run Decode
- Enter compressed file name. (eg. hamlet.short)
- Enter code file name. (eg. code.code)
- Enter output file name. (eg. hamletfull.txt)
- Run Encode2
- Enter input file name.
- Enter output compressed file name.
- Run Decode2
- Enter compressed file name.
- Enter output file name.