Skip to content

Method ReadFile

Namespace: Belay.Core
Assembly: Belay.Core.dll

ReadFile(string, CancellationToken)

Reads a file from the device.

csharp
Task<byte[]> ReadFile(string devicePath, CancellationToken cancellationToken = default)

Parameters

devicePath string

The path on the device to read from.

cancellationToken CancellationToken

Cancellation token for the operation.

Returns

Task<byte[]>

The file data from the device.

Released under the Apache License 2.0.