Encryption encryption = new Encryption(); //Trial Mode
//Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
StringBuilder sb = new StringBuilder();
for (int i = 0; i < 1024; i++)
sb.AppendLine("This is a test");
File.WriteAllText("input.txt", sb.ToString());
using (FileStream inputStream = new FileStream("input.txt", FileMode.Open, FileAccess.Read))
{
Stream compressedStream = encryption.CompressStream(CompressionType.MiniLZO, inputStream);
Console.WriteLine("{0} bytes compressed to {1} bytes with MiniLZO", inputStream.Length, compressedStream.Length);
Stream decompressedStream = encryption.DecompressStream(CompressionType.MiniLZO, compressedStream);
}