Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 730 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 730 Bytes

C#

Huffman

Huffman coding is a famous algorithm for lossless data compression.

To use the C# implementation, you should have .NET 5.0 installed.

  1. Go to the c-sharp directory and build the project:

    cd c-sharp
    dotnet build --configuration Release
  2. Use it:

    # compress a file
    dotnet build/net5.0/Huffman.Cli.dll compress path/to/file.txt path/to/archive.huffman
    
    # expand a compressed file
    dotnet build/net5.0/Huffman.Cli.dll expand path/to/archive.huffman path/to/expanded/file.txt