ES2.LoadRaw
public static byte[] LoadRaw(string path, ES2Settings settings=null)
Parameters
[table th=”0″]path,”The path to the file we want to load. This must be a file, not a tag or directory. For more information, see Paths.”
settings,”Optional. A user-created ES2Settings object containing options not specified in path.”[/table]
Returns
[table th=”0″]byte[ ],”Our loaded file as a byte array.”[/table]
Description
Loads the data from the specified path as a raw byte array. This can be used to load your own files.
C#
// Load our file as a byte array. byte[] bytes = ES2.LoadRaw("myFile.txt");
JS
// Load our file as a byte array. var bytes : byte[] = ES2.LoadRaw("myFile.txt");