From e4a8d56a0b01733d02a6c3371dee3cdbb0a73a45 Mon Sep 17 00:00:00 2001 From: kibertoad Date: Wed, 6 Jul 2016 15:12:58 +0300 Subject: [PATCH 1/5] refs #7560 Clarify "fs.readFile", "fs.appendFile", "fs.writeFile" documentation regarding closing. --- doc/api/fs.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 022fa0d2cf2732..448fd629ce0c64 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -378,7 +378,9 @@ fs.appendFile('message.txt', 'data to append', 'utf8', callback); Any specified file descriptor has to have been opened for appending. -_Note: Specified file descriptors will not be closed automatically._ +_Note: If a file descriptor is specified as the 'file', it will not be closed automatically._ + +_Note: If a filename is specified as the 'file', internally opened file descriptor will be closed automatically._ ## fs.appendFileSync(file, data[, options])