Method WriteTextFileAsync
Namespace: Belay.Sync
Assembly: Belay.Sync.dll
WriteTextFileAsync(string, string, CancellationToken)
Writes text to a file on the device, creating it if necessary.
csharp
public Task WriteTextFileAsync(string path, string content, CancellationToken cancellationToken = default)Parameters
path string
The file path to write to.
content string
The text content to write.
cancellationToken CancellationToken
Cancellation token to cancel the operation.
Returns
Exceptions
Thrown when access is denied.
Thrown when an I/O error occurs.