Documentation

Unity Engine

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 a month ago

Definition

public static byte[] ReadAllBytes(string path)

Parameters

path

The file to open for reading.

Returns

Type

Description

byte[]