fs.write(fd, buffer[, options], callback)


buffer 写入 fd 指定的文件。

¥Write buffer to the file specified by fd.

与上面的 fs.write 函数类似,此版本采用可选的 options 对象。如果未指定 options 对象,则默认使用上述值。

¥Similar to the above fs.write function, this version takes an optional options object. If no options object is specified, it will default with the above values.