Question
How will you open a file using node?

Answers

Following is the syntax of the method to open a file in asynchronous mode:fs.open(path, flags[, mode], callback)ParametersHere is the description of the parameters used:path - This is string having file name including path.flags - Flag tells the behavior of the file to be opened. All possible values have been mentioned below.mode - This sets the file mode (permission and sticky bits), but only if the file was created. It defaults to 0666, readable and writeable.callback - This is the callback function which gets two arguments (err, fd).   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Is it possible to pass a querystring from an .asp page to aspx page?
  • Q How to analyzing Test Results using QuickTest Professional (QTP)?
  • Q What is encapsulation?
  • Q What are the uses of the plants Phenol and Flavanoids in humans?
  • Q Explain the tropic pyramids of Ecology.
  • Q What is the difference between IT management and management information system?
  • Q Name few hidden surface removal algorithms for Curved Surfaces.
  • Q What do you understand by cardinality and why it is used?
  • Q A paper written by hand
  • Q Explain ipx frame format / ipx packet format?
  • Q The highest gallantry award in India: