| Which of the following method of fs module is used to get file information?
Choose the correct option from below list
(1)fs.open(path, flags[, mode], callback)
(2)fs.stat(path, callback)
(3)fs.readFile(path, flags[, mode], callback)
(4)None of the above.
Answer:-(2)fs.stat(path, callback) | | |