In order to compress a file file.dat, invoke the result .jar file as follows:
java -jar HuffmanCompressorApp.jar file.dat
That will create a compressed file file.data.huf.
In order to decompress a .huf file, invoke as follows:
java -jar HuffmanCompressorApp.jar file.dat.huf uncompressed.file.dat
On Windows command line, type:
fc /b FILE1 FILE2
For example:
fc /b file.dat uncompressed.file.dat
On *nix, type:
cmp -s FILE1 FILE2
For example:
cmp -s file.dat uncompressed.file.dat