Permalink
Browse files

Remove old versions of fs.read and fs.write from docs

  • Loading branch information...
1 parent 5a00d9d commit 6da0593162dbc861d32c83b38e083dbfd2df870d @ry ry committed Sep 17, 2010
Showing with 0 additions and 26 deletions.
  1. +0 −26 doc/api.markdown
View
@@ -1448,19 +1448,6 @@ See pwrite(2).
The callback will be given two arguments `(err, written)` where `written`
specifies how many _bytes_ were written.
-### fs.write(fd, str, position, encoding='utf8', [callback])
-
-Write the entire string `str` using the given `encoding` to the file specified
-by `fd`.
-
-`position` refers to the offset from the beginning of the file where this data
-should be written. If `position` is `null`, the data will be written at the
-current position.
-See pwrite(2).
-
-The callback will be given two arguments `(err, written)` where `written`
-specifies how many _bytes_ were written.
-
### fs.writeSync(fd, buffer, offset, length, position)
Synchronous version of buffer-based `fs.write()`. Returns the number of bytes written.
@@ -1484,19 +1471,6 @@ If `position` is `null`, data will be read from the current file position.
The callback is given the two arguments, `(err, bytesRead)`.
-### fs.read(fd, length, position, encoding, [callback])
-
-Read data from the file specified by `fd`.
-
-`length` is an integer specifying the number of bytes to read.
-
-`position` is an integer specifying where to begin reading from in the file.
-If `position` is `null`, data will be read from the current file position.
-
-`encoding` is the desired encoding of the string of data read in from `fd`.
-
-The callback is given the three arguments, `(err, str, bytesRead)`.
-
### fs.readSync(fd, buffer, offset, length, position)
Synchronous version of buffer-based `fs.read`. Returns the number of `bytesRead`.

2 comments on commit 6da0593

So does this mean we have to specify Buffers for fs.read and fs.write from now on?

ry replied Sep 17, 2010

yes

Please sign in to comment.