Thursday, 11 October, 2018 UTC


Summary

We'll read a csv file in node.js both synchronously, and asynchronously. The file we're reading is a plain text, utf8 file - but you can also use `fs.readFile` to read a binary file as a buffer. We'll look at the differences between `readFile` and `readFileSync`, and show examples of how to catch errors if they occur.