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; } }
public void Write(string value) { //Write(UZip.ZipString(value), 0, value.Length); UZip.WriteZip(Path, value); }
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)); }