ES2.LoadRaw
Parameters
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. |
Returns
byte[ ] | Our loaded file as a byte array. |
Description
Loads the data from the specified path as a raw byte array. This can be used to load your own files.
C#
1 2 |
// Load our file as a byte array. byte[] bytes = ES2.LoadRaw("myFile.txt"); |
JS
1 2 |
// Load our file as a byte array. var bytes : byte[] = ES2.LoadRaw("myFile.txt"); |