Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 528 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 528 Bytes

Huff Puff

Basic file compressor/decompressor using the Huffman algorithm. Note the decompressor (Puff) is not in this repo.

Usage:

  1. Compile java files.
  2. Run java Huff [file to compress]. Outputs a file with the same prefix + a .zip suffix in the same directory as the input.
  3. Run java Puff [compressed/huffed file] to decompress. Will output in the same way as compression but as a .txt file.

Note: This code takes zero safety precautions and will simply overwrite anything named the same as the output.