Direction: Choose the correct option
Q1.
Which method writes data to a file, replacing the file if it exists?
Direction: Choose the correct option
Q2.
How do you append data to an existing file?
Direction: Choose the correct option
Q3.
What flag should be used with `fs.open()` to open a file for writing (creating if it doesn't exist)?
Direction: Choose the correct option
Q4.
In `fs.writeFile`, what happens if the parent directory doesn't exist?
Direction: Choose the correct option
Q5.
What is the purpose of `fs.createWriteStream()`?
