Name some of the flags used in read/write operation on files.



Name some of the flags used in read/write operation on files...

Answer / Rajat Kush

Some common flags used for reading and writing files in Node.js include:n- `r` (read mode)n- `w` (write mode, will overwrite existing file)n- `a` (append mode, adds content to an existing file)n- `rs+` (read and sync mode)n- `ws+` (write and sync mode)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

List down the major benefits of using node.js?

1 Answers  


can you explain the difference between readfile vs createreadstream in nodejs.

1 Answers  


For what require() is used in node js?

1 Answers  


What are the functionalities of npm in node.js?

1 Answers  


Can you run node.js on apache?

1 Answers  


How to use async await with promises in node js?

1 Answers  


How to debug the Node.js code using IDE debuggers?

1 Answers  


Which mvc framework is best?

1 Answers  


How to create node js express project?

1 Answers  


How to use node js in javascript?

1 Answers  


What is blocking and nonblocking API in Node.js and how does it affect the architecture of your applications?

1 Answers  


What is the purpose of node.js?

1 Answers  


Categories