Explain the difference between readFile and createReadStream in Node.js.

Instruction: Compare readFile and createReadStream in terms of their operation and use cases.

Context: This question measures the candidate's understanding of the file system in Node.js, focusing on the differences between reading files using readFile and streams.

Upgrade to view answer

Related Questions