Пример #1
0
        public static void WriteZip(string filePath, string s)
        {
            byte[] b = UZip.ZipString(s);

            FileStream fs = new FileStream(filePath, FileMode.Create);

            fs.Write(b, 0, b.Length);

            fs.Close();
        }
Пример #2
0
 private void Encrypt(string s)
 {
     try
     {
         rtbFileContent.Text = Encoding.ASCII.GetString(UZip.ZipString(s));
     }
     catch (Exception ex)
     {
         TestDebugger.Instance.WriteError(ex);
         MessageForm.Show(ex);
     }
 }