## File::ReadAllBytes method


Läser innehållet i den angivna binära filen till en bytearray.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| sökväg | const String\& | Sökvägen till filen som ska läsas |

### ReturnValue

En bytearray som innehåller filens innehåll

## Se även

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