doc: document fs 'rs+' open mode

This commit is contained in:
Kevin Bowman 2012-05-16 04:24:05 +01:00 committed by Ben Noordhuis
parent 1a2255ab44
commit ccc4e547ea

View File

@ -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()` you want then you should be using `fs.openSync()`
An exception occurs if the file does not exist. 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. * `'w'` - Open file for writing.
The file is created (if it does not exist) or truncated (if it exists). The file is created (if it does not exist) or truncated (if it exists).