writeFile ('message.txt', 'Hello Node.js', 'utf8', callback);. writeFileSync 方法用于同步写入文件。 fs.writeFileSync(fileName, str, 'utf8');.
確定! 回上一頁