Implement two commands "compress" and "decompress".
The 'compress' command takes two arguments, the first is the original file name and the second is the name of the expected compressed output file.
The "decompress" command takes two parameters, the first is the original compressed file name and the second is the name of the expected decompressed output file.
In the compressed file, the first N lines are Huffman code tables. Then after two blank lines comes the Huffman string, using spaces to separate each Huffman code.
Implement two commands "compress" and "decompress".
In the compressed file, the first N lines are Huffman code tables. Then after two blank lines comes the Huffman string, using spaces to separate each Huffman code.