node.js Convert Blocking

Everyone don't knows why important to write non-blocking programs in Node.js. Here is some code using non-blocking function "readFile()"

Read the contents of 'index.html' and log them to the console.

 var fs = require('fs');  
 fs.readFile('index.html', function(err, contents){  
  console.log(contents);  
 });  

Nikunj K

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.