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

Commit

Permalink
doc: document fs 'rs+' open mode
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmonkey authored and bnoordhuis committed May 17, 2012
1 parent 1a2255a commit ccc4e54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/fs.markdown
Expand Up @@ -277,6 +277,10 @@ this doesn't turn `fs.open()` into a synchronous blocking call, if that's what
you want then you should be using `fs.openSync()`
An exception occurs if the file does not exist.

* `'rs+'` - Open file for reading and writing, telling the OS to open it
synchronously.
See notes for `'rs'` about using this with caution.

* `'w'` - Open file for writing.
The file is created (if it does not exist) or truncated (if it exists).

Expand Down

0 comments on commit ccc4e54

Please sign in to comment.