向文件追加内容。
文件路径。
要追加的内容。
追加成功返回的异步操作结果。
const result = await appendFile('/path/to/file.txt', '\nNew content');if (result.isOk()) { console.log('追加成功');} Copy
const result = await appendFile('/path/to/file.txt', '\nNew content');if (result.isOk()) { console.log('追加成功');}
向文件追加内容。