- writeFileSync(
this: V_Context,
path: PathOrFileDescriptor,
data: FileContents,
options?: WriteFileOptions,
): void Parameters
- this: V_Context
- path: PathOrFileDescriptor
- data: FileContents
Optional
options: WriteFileOptions
Returns void
- writeFileSync(
this: V_Context,
path: PathOrFileDescriptor,
data: FileContents,
encoding?: BufferEncoding,
): void Parameters
- this: V_Context
- path: PathOrFileDescriptor
- data: FileContents
Optional
encoding: BufferEncoding
Returns void
Synchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.