• +91 9723535972
  • info@interviewmaterial.com

NodeJS Interview Questions and Answers

Question - What is the difference between readFile and createReadStream in Node.js?

Answer - • readFile: This is used to read all of the contents of a given file in an asynchronous manner. All of the content will be read into the memory before users can access it. • create ReadStream: This is used to break up the field into smaller chunks and then read it. The default chunk size is 64 KB, and this can be changed as per requirement

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners