读取文本文件的内容。
文件路径。
包含文件文本内容的异步操作结果。
const result = await readTextFile('/path/to/file.txt');if (result.isOk()) { console.log(result.unwrap());} Copy
const result = await readTextFile('/path/to/file.txt');if (result.isOk()) { console.log(result.unwrap());}
读取文本文件的内容。