stack

Home > @infiniteobjects/core-library-node > FileSystem > readFile

FileSystem.readFile() method

Asynchronously reads the entire UTF-8 contents of a file.

Signature:

static readFile(filePath: string): Promise<string>;

Parameters

Parameter Type Description
filePath string  

Returns:

Promise<string>

Remarks

Just a promisified version of fs.readFile