ReadAllBytes()

File::ReadAllBytes(const String&) method

Reads the content of the specified binary file to a byte array.

static ArrayPtr<uint8_t> System::IO::File::ReadAllBytes(const String &path)

Arguments

ParameterTypeDescription
pathconst String&The path of the file to read

Return Value

A byte array containing the content of the file

See Also