fs.read(fd, [options,] callback)
fd<integer>options<Object>buffer<Buffer> | <TypedArray> | <DataView> 默认值:Buffer.alloc(16384)offset<integer> 默认值:0length<integer> 默认值:buffer.lengthposition<integer> 默认值:null
callback<Function>
与上面的 fs.read 函数类似,此版本采用可选的 options 对象。
如果未指定 options 对象,则默认使用上述值。
fd<integer>options<Object>buffer<Buffer> | <TypedArray> | <DataView> Default:Buffer.alloc(16384)offset<integer> Default:0length<integer> Default:buffer.lengthposition<integer> Default:null
callback<Function>
Similar to the above fs.read function, this version takes an optional options object.
If no options object is specified, it will default with the above values.