Reads all bytes from the file.
- Namespace
- Statiq
.Testing - Containing Type
- TestFile
- Implements
Syntax
public Task<byte[]> ReadAllBytesAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Name | Type | Description |
---|---|---|
cancellationToken | CancellationToken | A cancellation token. |
Return Value
Type | Description |
---|---|
Task |
All bytes in the file. |