doc: update fs flags documentation

PR-URL: https://github.com/nodejs/node/pull/48463
Fixes: https://github.com/nodejs/node/issues/48452
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
sinkhaha 2023-06-17 03:40:01 +08:00 committed by GitHub
parent 3c35cd4a74
commit 0d725d6fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7973,6 +7973,9 @@ string.
* `'r'`: Open file for reading.
An exception occurs if the file does not exist.
* `'rs'`: Open file for reading in synchronous mode.
An exception occurs if the file does not exist.
* `'r+'`: Open file for reading and writing.
An exception occurs if the file does not exist.