fs.open(path[, flags[, mode]], callback)


    异步地打开文件。 有关更多详细信息,请参阅 POSIX open(2) 文档。

    Asynchronous file open. See the POSIX open(2) documentation for more details.

    mode sets the file mode (permission and sticky bits), but only if the file was created. On Windows, only the write permission can be manipulated; see fs.chmod().

    The callback gets two arguments (err, fd).

    Some characters (< > : " / \ | ? *) are reserved under Windows as documented by Naming Files, Paths, and Namespaces. Under NTFS, if the filename contains a colon, Node.js will open a file system stream, as described by this MSDN page.

    Functions based on fs.open() exhibit this behavior as well: fs.writeFile(), fs.readFile(), etc.