FileUtil Class¶
Description¶
File utility.
Methods¶
LoadFile¶
- C#
public static System.Collections.IEnumerator LoadFile(string filePath, PathType filePathType, Action< Buffer > onLoad, Action<string> onError)
Async Load file and return Buffer object in the callback.
LoadFile¶
- C#
public static System.Collections.IEnumerator LoadFile(string filePath, PathType filePathType, Action<byte[]> onLoad, Action<string> onError)
Async Load file and return byte array in the callback.
PathToUrl¶
- C#
public static string PathToUrl(string path)
Convert file path to URL.