Function: file.ReadFile

Reads the contents of a file.

Syntax

{
	"method": "file.ReadFile",
	"params": {
		"file": "...",
	},
	"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
AdvFuture<std::vector<uint8_t>> ReadFile( AdvString file );
public Task<byte[]> ReadFileAsync(string file, CancellationToken ct = default);
readFile(file: string): Promise<string>;

Parameters

file : string

Path or Id of File or Folder.

Result : data

Remarks

This method requires API read access.