-
Run
make
in project directory. -
Create any
.txt
file. For example,file.txt
-
Using terminal in the folder that contains the target file, run
./encoder file.txt
-
The code will create an
output.dat
file which will be the compressed version for the file.
Note: Try compressing for larger file sizes. For extrememly small file sizes, the compressed file will be larger!
To cleanup project directory, run make clean
.
I hope you enjoy reading my code and playing around with the encoder :)
To decode your compressed file, use my Huffman decoder implementation.