|
@ -270,6 +270,13 @@ An exception occurs if the file does not exist. |
|
|
* `'r+'` - Open file for reading and writing. |
|
|
* `'r+'` - Open file for reading and writing. |
|
|
An exception occurs if the file does not exist. |
|
|
An exception occurs if the file does not exist. |
|
|
|
|
|
|
|
|
|
|
|
* `'rs'` - Open file for reading, telling the OS to open it synchronously |
|
|
|
|
|
(ie using the O_SYNC flag). Whilst rarely useful, when used with caution by |
|
|
|
|
|
those who know what they're doing it can be sometimes necessary. Note that |
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
* `'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). |
|
|
|
|
|
|
|
|