writeFile
Call Signature
Section titled “Call Signature”writeFile(
this,filename,data,cb?):void
Defined in: src/node/async.ts:194
Asynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Parameters
Section titled “Parameters”unknown
filename
Section titled “filename”PathLike
FileContents
Returns
Section titled “Returns”void
Option
Section titled “Option”encoding Defaults to 'utf8'.
Option
Section titled “Option”mode Defaults to 0644.
Option
Section titled “Option”flag Defaults to 'w'.
Call Signature
Section titled “Call Signature”writeFile(
this,filename,data,encoding?,cb?):void
Defined in: src/node/async.ts:195
Asynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Parameters
Section titled “Parameters”unknown
filename
Section titled “filename”PathLike
FileContents
encoding?
Section titled “encoding?”BufferEncoding
Returns
Section titled “Returns”void
Option
Section titled “Option”encoding Defaults to 'utf8'.
Option
Section titled “Option”mode Defaults to 0644.
Option
Section titled “Option”flag Defaults to 'w'.
Call Signature
Section titled “Call Signature”writeFile(
this,filename,data,options?,cb?):void
Defined in: src/node/async.ts:196
Asynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Parameters
Section titled “Parameters”unknown
filename
Section titled “filename”PathLike
FileContents
options?
Section titled “options?”WriteFileOptions
Returns
Section titled “Returns”void
Option
Section titled “Option”encoding Defaults to 'utf8'.
Option
Section titled “Option”mode Defaults to 0644.
Option
Section titled “Option”flag Defaults to 'w'.