Compress a file with RAR
I have a text file that I want to compress after it gets an specified size. I've already seen GZipStream which works great, but RAR compression is much better. I've been looking for a library that can compress a file with RAR (I really don't care about extracting or uncompressing), but I couldn't find one yet. As the RAR compression algorithm isn't free (only the decompression algorithm is), you won't find a library for it (or have to purchase a license). A good alternative is the LZMA SDK that delivers the compression algorithms used in 7-Zip. For a compression ratio/speed comparison, you can