fs.readSync(fd, buffer[, options])


返回 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().