| Which of the following method of fs module is used to truncate a file?
Choose the correct option from below list
(1)fs.delete(fd, len, callback)
(2)fs.remove(fd, len, callback)
(3)fs.ftruncate(fd, len, callback)
(4)None of the above.
Answer:-(3)fs.ftruncate(fd, len, callback) | | |