joyent/node — Issue #2330: String-based fs.readSync
Author: lapo-luchini
Created: 2011-12-14 11:12:31+00:00
State: open

I think there is one or two documentation bugs in this description:

> fs.readSync(fd, length, position, encoding)
> Synchronous version of string-based `fs.read`. Returns the number of `bytesRead`.

First I can't see any string-based `fs.read` in the documentation, only a buffer-based one; second I think the return value is a copy-paste error from the buffer-based version (which has a buffer as parameter) as in a string-based read I would expect the string to be returned in some way. :)