Saturday, 10 June 2017

Node.js fs.writeFile: err returns null

I'm using 'fs' for writing into a file. The write process is going smoothly, and the file is created as I wanted, but the 'err' variable returns null. I presume this 'null' indicates no errors, but I wanted to be sure.

Is having 'null' from err in fs.writeLine function means there are no errors?



via coras09

No comments:

Post a Comment