: You can use the LZMA SDK to generate data in memory and call Update() to compress it without writing a temporary file to disk.
If you are trying to "make a text" into an archive programmatically: Perfection.7z
: Right-click your text file, select 7-Zip > Add to archive... , and name it Perfection.7z . : You can use the LZMA SDK to
: The default method for .7z archives; it is lossless and preserves text quality perfectly. select 7-Zip > Add to archive...