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