C# Class BBGamelib.FileUtils

Afficher le fichier Open project: BigWoodGames/cocos2d-unity

Méthodes publiques

Méthode 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

Méthode Description
ReadStringFromPath ( string path ) : string

Method Details

DeleteFile() public static méthode

public static DeleteFile ( string path ) : void
path string
Résultat void

ReadBytesFromStreamAssets() public static méthode

public static ReadBytesFromStreamAssets ( string file ) : byte[]
file string
Résultat byte[]

ReadTextFileFromExternal() public static méthode

public static ReadTextFileFromExternal ( string path, ZipDelegate zip = null ) : string
path string
zip ZipDelegate
Résultat string

ReadTextFileFromResources() public static méthode

public static ReadTextFileFromResources ( string path, ZipDelegate zip = null ) : string
path string
zip ZipDelegate
Résultat string

ReadTextFileFromStreamAssets() public static méthode

public static ReadTextFileFromStreamAssets ( string path, ZipDelegate zip = null ) : string
path string
zip ZipDelegate
Résultat string

ReadTextFileFromURL() public static méthode

public static ReadTextFileFromURL ( string url, ZipDelegate zip = null ) : string
url string
zip ZipDelegate
Résultat string

WriteToFile() public static méthode

public static WriteToFile ( string path, string text, ZipDelegate zip = null ) : void
path string
text string
zip ZipDelegate
Résultat void