BBGamelib.FileUtils.ReadTextFileFromURL C# (CSharp) Method

ReadTextFileFromURL() public static method

public static ReadTextFileFromURL ( string url, ZipDelegate zip = null ) : string
url string
zip ZipDelegate
return string
		public static string ReadTextFileFromURL(string url, ZipDelegate zip=null){
			WWW www = new WWW(url);
			while(!www.isDone){}
			string text = www.text;
			if (zip != null)
				text = zip.unZip (text);
			return text;
		}

Usage Example

Beispiel #1
0
        public static NSDictionary DictionaryWithContentsOfURL(string path, FileUtils.ZipDelegate zip = null)
        {
            string text = FileUtils.ReadTextFileFromURL(path);

            if (zip != null)
            {
                text = zip.unZip(text);
            }
            return(DictionaryWithContentsOfString(text, zip));
        }
All Usage Examples Of BBGamelib.FileUtils::ReadTextFileFromURL