public static void WriteToFile(string path, string text, ZipDelegate zip=null){ CCDebug.Log ("FileUtils:writeToFile {0}", path); if (zip != null) text = zip.zip (text); if (File.Exists (path)) { File.Delete(path); } File.WriteAllText (path, text); }
public void writeToFile(string path) { string text = convertToXml(); FileUtils.WriteToFile(path, text, _zip); }