writeFile
Method: fs.writeFile
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
path
The path to the file to write.
data
The data to write to the file.
callback
The callback to provide the results or an error.
abstract fun writeFile(path: Path, data: String, options: WriteFileOptions = WriteFileOptions.DEFAULTS, callback: WriteFileCallback)
abstract fun writeFile(path: Path, data: ByteArray, options: WriteFileOptions = WriteFileOptions.DEFAULTS, callback: WriteFileCallback)
Method: fs.writeFile
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
path
The path to the file to write.
data
The data to write to the file.
options
The options to use for the file write operation.
callback
The callback to provide the results or an error.