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;
     }
 }
Beispiel #2
0
 public void Write(string value)
 {
     //Write(UZip.ZipString(value), 0, value.Length);
     UZip.WriteZip(Path, value);
 }
Beispiel #3
0
        private void ZipFile(string fileName)
        {
            string s = InfinitySettings.Streams.InfinityReader.ReadToEnd(fileName);

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

            return(UZip.UnzipStringNew(b));
        }