fs.openSync(path[, flags[, mode]])
-
flags<string> | <number> 默认值:'r'。参见 支持文件系统flags。¥
flags<string> | <number> Default:'r'. See support of file systemflags. -
返回:<number>
¥Returns: <number>
返回表示文件描述符的整数。
¥Returns an integer representing the file descriptor.
有关详细信息,请参阅此 API 的异步版本的文档:fs.open()。
¥For detailed information, see the documentation of the asynchronous version of
this API: fs.open().