Node.js fsPromises.open() Method
The fsPromises.open() method is used to asynchronously open a file that returns a Promise that, when resolved, yields a FileHandle object. Syntax: fsPromises.open( filename, flags, mode) Parameter: This method accepts three parameters as mentioned above and described below: filename: It is a String,