mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Clarifying that writeFile replaces existing file
This commit is contained in:
committed by
Ryan Dahl
parent
3ec391ba36
commit
f0d0fcc4aa
@@ -290,7 +290,8 @@ returns a buffer.
|
||||
|
||||
### fs.writeFile(filename, data, encoding='utf8', [callback])
|
||||
|
||||
Asynchronously writes data to a file. `data` can be a string or a buffer.
|
||||
Asynchronously writes data to a file, replacing the file if it already exists.
|
||||
`data` can be a string or a buffer.
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user