## File::WriteAllBytes method


覆盖指定的二进制文件并将指定的字节写入其中。

```cpp
static void System::IO::File::WriteAllBytes(const String &path, const ArrayPtr<uint8_t> &bytes)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要写入的文件 |
| 字节 | const ArrayPtr\<uint8_t\>\& | 包含写入指定文件的字节的字节数组 |

## 另见

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