1.

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

Answer»

Which method of fs module is used to TRUNCATE a file?
Choose ANSWER from below list
(1)fs.delete(FD, len, callback)
(2)fs.ftruncate(fd, len, callback)
(3)fs.remove(fd, len, callback)
(4)None of the options

Answer:-(2)fs.ftruncate(fd, len, callback)



Discussion

No Comment Found