ES3.LoadRawBytes
Description
Loads an entire file as a raw array of bytes.
A KeyNotFoundException or FileNotFoundException will be thrown if the file does not exist. In this case, you can use ES3.FileExists to check if the data exists before loading.
Parameters
filePath | The relative or absolute path of the file we want to load the raw bytes from. |
settings |
[Optional] The settings we want to use to override the default settings. |
Returns
The loaded file as an array of bytes.
Examples
C#
1 2 |
// Load the file myFile.es3 as a byte array. byte[] bytes = ES3.LoadRawBytes("myFile.es3"); |
JS
1 2 |
// Load the file myFile.es3 as a byte array. var bytes : byte[] = ES3.LoadRawBytes("myFile.es3"); |