System::IO::File::ReadAllBytes method

File::ReadAllBytes method

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

static ArrayPtr<uint8_t> System::IO::File::ReadAllBytes(const String &path)
ParameterTypeDescription
pathconst String&The path of the file to read

ReturnValue

A byte array containing the content of the file

See Also