public static void WriteToFile(string path, string text, ZipDelegate zip = null) { if (zip != null) { text = zip.zip(text); } PlayerPrefs.SetString(path, text); }
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 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 static void WriteToFile(string path, string text, ZipDelegate zip=null){ if (zip != null) text = zip.zip (text); PlayerPrefs.SetString (path, text); }