- readFileSync(path, options?): Buffer
Parameters
- path: PathOrFileDescriptor
Optional
options: null | {
flag?: string;
}
Returns Buffer
file contents
- readFileSync(path, options?): string
Parameters
- path: PathOrFileDescriptor
Optional
options: null | BufferEncoding | (EncodingOption & { flag?: string | undefined; })
Returns string
Synchronously reads the entire contents of a file.