fs.writeSync(fd, string[, position[, encoding]])
如果 string 是普通的对象,则它必须具有自有的(不是继承的)toString 函数属性。
有关详细信息,请参阅此 API 的异步版本的文档:fs.write(fd, string...)。
fd<integer>string<string> | <Object>position<integer>encoding<string>- Returns: <number> The number of bytes written.
If string is a plain object, it must have an own (not inherited) toString
function property.
For detailed information, see the documentation of the asynchronous version of
this API: fs.write(fd, string...).