- writeFileSync(path, data, options?): void
Parameters
- path: PathOrFileDescriptor
- data: FileContents
Optional
options: WriteFileOptions
Returns void
- writeFileSync(path, data, encoding?): void
Parameters
- 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.