public static void WriteFile(string filePath, string fileContent)
 {
     try
     {
         UFile.RemoveReadOnly(filePath);
         UZip.WriteZip(filePath, fileContent);
     }
     catch (Exception ex)
     {
         MessageForm.Show(ex, fileContent);
         TestDebugger.Instance.WriteLog(ex);
         TestDebugger.Instance.WriteLog(fileContent);
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public void Write(string value)
 {
     //Write(UZip.ZipString(value), 0, value.Length);
     UZip.WriteZip(Path, value);
 }
Ejemplo n.º 3
0
        private void ZipFile(string fileName)
        {
            string s = InfinitySettings.Streams.InfinityReader.ReadToEnd(fileName);

            UZip.WriteZip(fileName, s);
        }
Ejemplo n.º 4
0
        public static string ReadToEnd3(string path)
        {
            byte[] b = File.ReadAllBytes(path);

            return(UZip.UnzipStringNew(b));
        }