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