Skip to content

Function: readText()

Documentation / @wtf/platform-fs / files / readText

function readText(platform, path): Promise<string>;

Defined in: packages/platform-fs/src/files.ts:100

The text of the file of path, read as UTF-8.

Parameters

ParameterType
platformFilesPlatform
pathstring

Returns

Promise<string>