node-fs-writefile Flashcards

1
Q

What method is available in the Node.js fs module for writing data to a file?

A

fs.writeFile(fileName, data(string), ‘utf8’, callbackfn)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Are file operations using the fs module synchronous or asynchronous?

A

Some of them are asynchronous and some are synchronous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly