## File::ReadAllBytes method


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要读取的文件路径 |

### ReturnValue

一个包含文件内容的字节数组

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
