public static string ReadTextFileFromExternal(string path, ZipDelegate zip=null){ string result = null; if (File.Exists (path)) { result = ReadStringFromPath(path); } if (zip != null) result = zip.unZip (result); return result; }
public static NSDictionary DictionaryWithContentsOfFileFromExternal(string path, FileUtils.ZipDelegate zip = null) { string text = FileUtils.ReadTextFileFromExternal(path); if (zip != null) { text = zip.unZip(text); } return(DictionaryWithContentsOfString(text, zip)); }