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