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