Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ReadAllBytes(string)

Opens a binary file, reads the contents of the file into a byte array, and then closes the file.
Read time 1 minuteLast updated 14 days ago

Definition

public static byte[] ReadAllBytes(string path)

Parameters

path

The file to open for reading.

Returns

Type

Description

byte[]