fs.write(fd, buffer[, options], callback)
fd<integer>buffer<Buffer> | <TypedArray> | <DataView>options<Object>callback<Function>err<Error>bytesWritten<integer>buffer<Buffer> | <TypedArray> | <DataView>
将 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.