Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bnoordhuis committed Jun 28, 2012
1 parent d5f13f6 commit be3afd0
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions doc/api/fs.markdown
Expand Up @@ -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])

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

Expand Down

0 comments on commit be3afd0

Please sign in to comment.