InterviewSolution
| 1. |
How will you write a file using Node? |
|
Answer» Following is the syntax of one of the methods to write into a file: fs.writeFile(filename, data[, options], callback) This method will over-write the file if file already exists. If you want to write into an existing file then you should use another method available. ParametersHere is the description of the parameters used:
|
|