happy-opfs • Docs
happy-opfs / readTextFile
function readTextFile(filePath): AsyncIOResult<string>
Reads the content of a file at the specified path as a string.
Parameter | Type | Description |
---|---|---|
filePath |
string |
The path of the file to read. |
AsyncIOResult
<string
>
A promise that resolves to an AsyncIOResult
containing the file content as a string.