ReadTextFileFromStreamAssets() public static method

public static ReadTextFileFromStreamAssets ( string path, ZipDelegate zip = null ) : string
path string
zip ZipDelegate
return string
Esempio n. 1
0
        public static NSDictionary DictionaryWithContentsOfFileFromStreamAssetss(string path, FileUtils.ZipDelegate zip = null)
        {
            string text = FileUtils.ReadTextFileFromStreamAssets(path);

            if (zip != null)
            {
                text = zip.unZip(text);
            }
            return(DictionaryWithContentsOfString(text, zip));
        }
Esempio n. 2
0
        public static NSArray ArrayWithContentsOfFileFromStreamAssetss(string path, FileUtils.ZipDelegate zip = null)
        {
            string text = FileUtils.ReadTextFileFromStreamAssets(path);

            if (zip != null)
            {
                text = zip.unZip(text);
            }
            NSArray ary = ArrayWithContentsOfString(text);

            ary.zip = zip;
            return(ary);
        }