## File::ReadAllBytes method


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

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


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | The path of the file to read |

### ReturnValue

A byte array containing the content of the file

## See Also

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