The path to the file.
Optional
encoding: BufferEncodingThe encoding to use when reading the file. Note that 'undefined' defaults to 'utf8'.
fs.promises.readFile, except that it uses 'utf8' encoding by default.
Reads a file and returns the file's contents.
Identical to
The path to the file.
Optional
encoding: BufferEncodingThe encoding to use when reading the file. Note that 'undefined' defaults to 'utf8'.
Optional
callback: ((err, data) => void)An optional async callback.
fs.readFile (with callback), except that it uses 'utf8' encoding by default.
Generated using TypeDoc
Reads a file and returns the file's contents.
Identical to