fs.readSync(fd, buffer[, options])
fd<integer>buffer<Buffer> | <TypedArray> | <DataView>options<Object>- 返回:<number>
返回 bytesRead 的数量。
🌐 Returns the number of bytesRead.
与上述 fs.readSync 函数类似,这个版本接受一个可选的 options 对象。如果未指定 options 对象,将使用上述默认值。
🌐 Similar to the above fs.readSync function, this version takes an optional options object.
If no options object is specified, it will default with the above values.
有关详细信息,请参阅此 API 异步版本的文档:fs.read()。
🌐 For detailed information, see the documentation of the asynchronous version of
this API: fs.read().