## File::WriteAllBytes method


Overwrites the specified binary file and writes the specified bytes to it.

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


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | The file to write to |
| bytes | const ArrayPtr\<uint8_t\>\& | The byte array containing the bytes to write to the specified file |

## See Also

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