0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

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.
This commit is contained in:
Ben Noordhuis 2012-06-28 03:47:40 +02:00
parent d5f13f6c08
commit be3afd0bec

View File

@ -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])