Asynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Optional
encoding Defaults to 'utf8'.
'utf8'
mode Defaults to 0644.
0644
flag Defaults to 'w'.
'w'
Asynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.