title: Uncaught TypeError: fs.readFileSync is not a function in console
body: <p>I using below code for reading file from my local system:</p>
  
  <pre><code>var fs = require('fs');            
  var text = fs.readFileSync("./men.text");
  var textByLine = text.split("\n")
  console.log(textByLine);
  </code></pre>