Which method of fs module is used to write a file?
Answers
Answered by
0
Explanation. fs.writeFile(path, flags[, mode], callback) is the method which is used to write a file.
hope it helps
Answered by
0
Answer:
http://crackyourinterview.com/Ads-Which-method-of-fs-module-is-used-to-close-a-file.aspx
Explanation:
Which method of fs module is used to close a file?
Choose the correct option from below list
(1)fs.closeFile(fd, callback)
(2)fs.close(fd, callback)
(3)fs.closePath(fd, callback)
(4)None of the options
Answer:-(2)fs.close(fd, callback)
Similar questions