Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 665 Bytes

readTextFile.md

File metadata and controls

29 lines (17 loc) · 665 Bytes

happy-opfsDocs


happy-opfs / readTextFile

Function: readTextFile()

function readTextFile(filePath): AsyncIOResult<string>

Reads the content of a file at the specified path as a string.

Parameters

Parameter Type Description
filePath string The path of the file to read.

Returns

AsyncIOResult<string>

A promise that resolves to an AsyncIOResult containing the file content as a string.

Defined in

fs/opfs_ext.ts:247