BBGamelib.FileUtils.ReadTextFileFromExternal C# (CSharp) Method

ReadTextFileFromExternal() public static method

public static ReadTextFileFromExternal ( string path, ZipDelegate zip = null ) : string
path string
zip ZipDelegate
return string
		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;
		}
		

Usage Example

Beispiel #1
0
        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));
        }
All Usage Examples Of BBGamelib.FileUtils::ReadTextFileFromExternal