ES3.LoadRawBytes

public static byte[] LoadRawBytes(string filePath, ES3Settings settings)

Description

Loads an entire file as a raw array of bytes.

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#

JS