static Byte[] ReadFileBytes(string filename)

string filename Path to the file. Not affected by Assets folder path.
RETURNS: Byte[] A byte array if successful, null if not.

Reads the entire contents of the file as a byte array, taking advantage of any permissions that may have been granted by Platform.FilePicker. Returns null on failure.

Found an issue with these docs, or have some additional questions? Create an Issue on Github!