Home »
MCQs »
Electron.js MCQs
____ function reads a file's contents
11. ____ function reads a file's contents.
- fs.fileread(filePath, options, callback)
- fs.readFile(filePath, options, callback)
- fs.read(filePath, options, callback)
Answer: B) fs.readFile(filePath, options, callback)
Explanation:
fs.readFile(filePath, options, callback), the function reads a file's contents.