| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > FileSystem > readFile
Reads the contents of a file into a string. Behind the scenes it uses fs.readFileSync()<></>.
Signature:
static readFile(filePath: string, options?: IFileSystemReadFileOptions): string;|
Parameter |
Type |
Description |
|---|---|---|
|
filePath |
string |
The relative or absolute path to the file whose contents should be read. |
|
options |
(Optional) Optional settings that can change the behavior. Type: |
Returns:
string