System::IO::File::ReadAllBytes 方法

File::ReadAllBytes method

将指定二进制文件的内容读取到字节数组中。

static ArrayPtr<uint8_t> System::IO::File::ReadAllBytes(const String &path)
参数类型描述
路径const String&要读取的文件路径

ReturnValue

包含文件内容的字节数组

另见