writeFileSync

external fun writeFileSync(file: PathOrFileDescriptor, data: String, options: WriteFileOptions = definedExternally)(source)
external fun writeFileSync(    file: PathOrFileDescriptor,     data: <Error class: unknown class><out <Error class: unknown class>>,     options: WriteFileOptions = definedExternally)(source)

Returns undefined.

The mode option only affects the newly created file. See {@link open} for more details.

For detailed information, see the documentation of the asynchronous version of this API: {@link writeFile}.

Since

v0.1.29

Parameters

file

filename or file descriptor