writeFileSync
Method: fs.writeFileSync
Writes the contents of a file at the specified path; provides the results or an error to the callback. This variant accepts a polyglot Value.
Parameters
The path to the file to write.
The data to write to the file.
Method: fs.writeFileSync
Writes the contents of a file at the specified path; provides the results or an error to the callback. This variant accepts a polyglot Value.
Parameters
The path to the file to write.
The data to write to the file.
The options to use for the file write operation.
Method: fs.writeFileSync
Writes the contents of a file at the specified path synchronously; throws if an error prevents the file from being written. This variant accepts a ByteArray.
Parameters
The path to the file to write.
The data to write to the file.
The options to use for the file write operation.
Method: fs.writeFileSync
Writes the contents of a file at the specified path synchronously; throws if an error prevents the file from being written. This variant accepts a String.
Parameters
The path to the file to write.
The data to write to the file.
The options to use for the file write operation.