fs.writeFileSync(file, data[, options])


返回 undefined

mode 选项仅影响新创建的文件。 有关详细信息,请参阅 fs.open()

有关详细信息,请参阅此 API 的异步版本的文档:fs.writeFile()

Returns undefined.

The mode option only affects the newly created file. See fs.open() for more details.

For detailed information, see the documentation of the asynchronous version of this API: fs.writeFile().