Compress is a simple tool to compress txt and rtf files.
The Ui was built with the Avalonia Framework. So the programm is Crossplatform
i demonstrated how to use the programm in the following video
How.to.use.the.programm.mp4
the programm reads the text of the input file and builds a binary tree out of it.
According to the Huffman coding every char in the tree gets a code like "H = 101". https://en.wikipedia.org/wiki/Huffman_coding
Then the encoded string gets turned into bytes and saved as a .huff.
The tree that was used to encode the file gets saved in the runtime folder.
to Deode a .huff file the programm needs to load the .tree file form the runtime folder. after that the .huff file is being read bit by bit and once the code matches the code in the tree it gets translatet to the corresponding a char.