Lossless Text Compression
Run make
to build the program. This will create an executable named exe
.
Call ./exe [filename] [-d/-c] [output filename]
to run program.
filename is the name of the ASCII text file you want to compress or decompress
-c to compress, -d to decompress (must be a previously compressed file)
output filename is the name you want to give to the output file
Eg.
./exe harrypotter.txt -c compressedharrypotter
./exe compressedharrypotter.txt -d harrypotter