-
Step 1: Download the folder in your computer.
-
Step 2: Open terminal within the folder.
-
Step 3: To compress the text file, enter the following in the terminal: >
g++ encode.cpp huffman.cpp -o main
>./main inputFile.txt compressedFile.huf
-
Step 4: To decompress the compressed file, enter the following in the terminal >
g++ decode.cpp huffman.cpp -o main
>./main compressedFile.huf outputFile.txt
-
The following diagram shows a pictorial representation of commmands in the terminal: