Real-Time Web with Node.js Real-Time Web with Node.js

Asynchronous File IO

Kyle changes the program to read the file asynchronously and passes the readFile method a callback function. This function will be called when the file stream is completed. Kyle also demonstrates how to handle errors in Node.
Get Unlimited Access Now