Clarifying that writeFile replaces existing file

This commit is contained in:
Trevor Burnham
2011-03-19 10:22:50 -04:00
committed by Ryan Dahl
parent 3ec391ba36
commit f0d0fcc4aa

View File

@@ -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: