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(); }
private void Encrypt(string s) { try { rtbFileContent.Text = Encoding.ASCII.GetString(UZip.ZipString(s)); } catch (Exception ex) { TestDebugger.Instance.WriteError(ex); MessageForm.Show(ex); } }