readFile
Method: fs.readFile
Reads the contents of a file at the specified path; provides the results or an error to the callback. This variant accepts a polyglot Value.
Return
A promise which resolves with the file contents or rejects with an error.
Parameters
path
The path to the file to read.
Method: fs.readFile
Reads the contents of a file at the specified path; provides the results or an error to the callback. This variant accepts a polyglot Value.
Return
A promise which resolves with the file contents or rejects with an error.
Parameters
path
The path to the file to read.
options
The options to use for the file read operation.