- readFile(filename, cb): void
Parameters
- filename: PathLike
- cb: Callback<[Uint8Array]>
Returns void
- readFile(filename, options, callback?): void
Parameters
- filename: PathLike
- options: {
flag?: string;
} Optional
callback: Callback<[Uint8Array]>
Returns void
- readFile(filename, options, cb): void
Parameters
- filename: PathLike
- options: BufferEncoding | {
encoding: BufferEncoding;
flag?: string;
} - cb: Callback<[string]>
Returns void
Asynchronously reads the entire contents of a file.