Skip to content

Tool written in C++ which can be used to compress and decompress a text-file using huffman codes. The file must contain only ASCII characters.

License

Notifications You must be signed in to change notification settings

Bogdanisar/Huffman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Huffman

Tool written in C++ which can be used to compress and decompress a text-file using huffman codes. The file must contain only ASCII characters.

Navigate to containing folder in CMD and run:

g++ -std=c++11 huffman.cpp -o huffman.exe

Usage command:

huffman.exe < operation type > < if > < of >

Operation type = 1 if compression is desired.

  • < if > = the full name of a local .txt file that is to be compressed.
  • < of > = the full name of a local .huf file to store output.
  • E.g.: huffman.exe 1 localInput.txt localOutput.huf

Operation type = 2 if decompression is desired.

  • < if > = the full name of a local .huf file that is to be decompressed.
  • < of > = the full name of a local .txt file to store output.
  • E.g.: huffman.exe 2 localInput.huf localOutput.txt

About

Tool written in C++ which can be used to compress and decompress a text-file using huffman codes. The file must contain only ASCII characters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages