Platform.ReadFileBytes

static Byte[] ReadFileBytes(string filename)

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.

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




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