Reads all text from the file.
- Namespace
- Statiq
.Common - Containing Type
- IFile
Syntax
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. |