- readFile(
this: V_Context,
path: PathLike | FileHandle,
options?: null | { encoding?: null; flag?: OpenMode },
): Promise<Buffer> Parameters
- this: V_Context
- path: PathLike | FileHandle
Optional
options: null | { encoding?: null; flag?: OpenMode }
Returns Promise<Buffer>
the file data
- readFile(
this: V_Context,
path: PathLike | FileHandle,
options:
| BufferEncoding
| { encoding: BufferEncoding; flag?: OpenMode | undefined },
): Promise<string> Parameters
- this: V_Context
- path: PathLike | FileHandle
- options: BufferEncoding | { encoding: BufferEncoding; flag?: OpenMode | undefined }
Returns Promise<string>
the file data
- readFile(
this: V_Context,
path: PathLike | FileHandle,
options?:
| null
| BufferEncoding
| ObjectEncodingOptions & { flag?: OpenMode | undefined },
): Promise<string | Buffer> Parameters
- this: V_Context
- path: PathLike | FileHandle
Optional
options: null | BufferEncoding | ObjectEncodingOptions & { flag?: OpenMode | undefined }
Returns Promise<string | Buffer>
the file data
Asynchronously reads the entire contents of a file.