Computer Science, asked by Deforestation9142, 1 year ago

Which method of fs module is used to write a file?

Answers

Answered by firingsquad
0

Explanation. fs.writeFile(path, flags[, mode], callback) is the method which is used to write a file.

hope it helps

Answered by bhartigogia4u
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