Hufzip is a text file compressor based on Huffman algorithm. It has a didatic character and was built for the sole purpose of learning about file compressing methods. Files compressed with Huffzip have .hfz
extension.
This is a quick guide to how to run Hufzip on Replit.
- Open the project repl;
- Click "Run" button;
- With the editor on focus, press
Ctrl
+Shift
+P
on Windows and Linux orCmd
+Shift
+P
on Mac. A text box should open; - Search "Open Shell" and click the option that appears.
- Type the following command on terminal:
$ ./main -c "sample/long.txt"
Done! If everything went well, a long.hfz
file was created on sample
folder.
- Open the project repl;
- Click "Run" button;
- With the editor on focus, press
Ctrl
+Shift
+P
on Windows and Linux orCmd
+Shift
+P
on Mac. A text box should open; - Search "Open Shell" and click the option that appears.
- Type the following command on terminal:
$ ./main -c "sample/long.txt"
All right! If everything went well, a long.txt
file was created on sample
folder.
No makefile was provided for the project. However, it can be built without major complications. The test was performed with MinGW for Windows 64 bits.
Use -c
parameter, followed by filepath, to compress it. For instance:
$ hufzip -c "sample/long.txt"
Use -d
parameter, followed by filepath, to decompress it. For instance:
$ hufzip -d "sample/long.hfz"
Send email to [email protected].
MIT Copyright (c) 2019, Davidson Bruno.