fs.writeFileSync(file, data[, options])
file<string> | <Buffer> | <URL> | <integer> 文件名或文件描述符data<string> | <Buffer> | <TypedArray> | <DataView>options<Object> | <string>encoding<string> | <null> 默认值:'utf8'mode<integer> 默认值:0o666flag<string> 请参阅对文件系统flags的支持。 默认值:'w'。
返回 undefined。
有关详细信息,请参阅此 API 的异步版本的文档:fs.writeFile()。
file<string> | <Buffer> | <URL> | <integer> filename or file descriptordata<string> | <Buffer> | <TypedArray> | <DataView>options<Object> | <string>encoding<string> | <null> Default:'utf8'mode<integer> Default:0o666flag<string> See support of file systemflags. Default:'w'.
Returns undefined.
For detailed information, see the documentation of the asynchronous version of
this API: fs.writeFile().