[**minigame-std**](../../../README.md)

***

[minigame-std](../../../README.md) / [fs](../README.md) / readTextFileSync

# Function: readTextFileSync()

```ts
function readTextFileSync(filePath): IOResult<string>
```

`readTextFile` 的同步版本。

## Parameters

| Parameter | Type |
| ------ | ------ |
| `filePath` | `string` |

## Returns

`IOResult`\<`string`\>

## Defined in

[src/std/fs/fs\_sync.ts:164](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/fs/fs_sync.ts#L164)
