writeFileSync

external fun writeFileSync(file: PathOrFileDescriptor, data: String, options: WriteFileOptions = definedExternally)(source)
external fun writeFileSync(file: PathOrFileDescriptor, data: ArrayBufferView, 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