fs.readFile(filePath, 'utf-8', function (err, data) { if(err) { callback(err, null); }else { callback(null, data); } });