UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

28 lines (16 loc) 616 B
[**minigame-std**](../../../README.md) *** [minigame-std](../../../README.md) / [fs](../README.md) / readTextFile # Function: readTextFile() ```ts function readTextFile(filePath): AsyncIOResult<string> ``` Defined in: [src/std/fs/fs\_async.ts:214](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/fs/fs_async.ts#L214) 读取文本文件的内容。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `filePath` | `string` | 文件路径。 | ## Returns `AsyncIOResult`\<`string`\> 包含文件文本内容的异步操作结果。