Browse Source

doc: remove references to deprecated fs api

The string-based versions of fs.read() and fs.write() have been deprecated
since before v0.2.0.
v0.8.7-release
Ben Noordhuis 13 years ago
parent
commit
be3afd0bec
  1. 16
      doc/api/fs.markdown

16
doc/api/fs.markdown

@ -355,13 +355,7 @@ without waiting for the callback. For this scenario,
## fs.writeSync(fd, buffer, offset, length, position)
Synchronous version of buffer-based `fs.write()`. Returns the number of bytes
written.
## fs.writeSync(fd, str, position, [encoding])
Synchronous version of string-based `fs.write()`. `encoding` defaults to
`'utf8'`. Returns the number of _bytes_ written.
Synchronous version of `fs.write()`. Returns the number of bytes written.
## fs.read(fd, buffer, offset, length, position, [callback])
@ -380,13 +374,7 @@ The callback is given the three arguments, `(err, bytesRead, buffer)`.
## fs.readSync(fd, buffer, offset, length, position)
Synchronous version of buffer-based `fs.read`. Returns the number of
`bytesRead`.
## fs.readSync(fd, length, position, encoding)
Legacy synchronous version of string-based `fs.read`. Returns an array with the
data from the file specified and number of bytes read, `[string, bytesRead]`.
Synchronous version of `fs.read`. Returns the number of `bytesRead`.
## fs.readFile(filename, [encoding], [callback])

Loading…
Cancel
Save