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