I am just a beginner to nodejs and I came across the fs module. I tried to write a few lines of code.
var fs = require('fs');
// Open file demo.txt in read mode
fs.open('/users/Upwn/desktop/ashok_pant.txt', 'r+', function (err, f) {
if(err) throw err;
console.log('Opened!');
});
The output was "Opened!" but nothing was opened from my local file system. What may be wrong with this?