C# Class BBGamelib.FileUtils

Mostrar archivo Open project: BigWoodGames/cocos2d-unity

Public Methods

Method Description
DeleteFile ( string path ) : void
ReadBytesFromStreamAssets ( string file ) : byte[]
ReadTextFileFromExternal ( string path, ZipDelegate zip = null ) : string
ReadTextFileFromResources ( string path, ZipDelegate zip = null ) : string
ReadTextFileFromStreamAssets ( string path, ZipDelegate zip = null ) : string
ReadTextFileFromURL ( string url, ZipDelegate zip = null ) : string
WriteToFile ( string path, string text, ZipDelegate zip = null ) : void

Private Methods

Method Description
ReadStringFromPath ( string path ) : string

Method Details

DeleteFile() public static method

public static DeleteFile ( string path ) : void
path string
return void

ReadBytesFromStreamAssets() public static method

public static ReadBytesFromStreamAssets ( string file ) : byte[]
file string
return byte[]

ReadTextFileFromExternal() public static method

public static ReadTextFileFromExternal ( string path, ZipDelegate zip = null ) : string
path string
zip ZipDelegate
return string

ReadTextFileFromResources() public static method

public static ReadTextFileFromResources ( string path, ZipDelegate zip = null ) : string
path string
zip ZipDelegate
return string

ReadTextFileFromStreamAssets() public static method

public static ReadTextFileFromStreamAssets ( string path, ZipDelegate zip = null ) : string
path string
zip ZipDelegate
return string

ReadTextFileFromURL() public static method

public static ReadTextFileFromURL ( string url, ZipDelegate zip = null ) : string
url string
zip ZipDelegate
return string

WriteToFile() public static method

public static WriteToFile ( string path, string text, ZipDelegate zip = null ) : void
path string
text string
zip ZipDelegate
return void