title: readFileSync is not a function
body: <p>I am relatively new to Node.js and have been looking around but cannot find a solution. I did check the require javascript file and it does not seem to have a method for "readFileSync". Perhaps I don't have a proper require file? I had a hard time finding this file, everywhere talked about it but most people did not post where to get it.</p>
  
  <p>I installed Node.js and have the require.js file. My current code is like this:</p>
  
  <pre><code>fs = require(['require'], function (foo) {
  //foo is now loaded.
  });
  console.log("\n *STARTING* \n");
  // Get content from file
  var contents = fs.readFileSync("sliderImages", 'utf8');
  </code></pre>
  
  <p>I had a bit at first getting require to work however it seems to load the require JavaScript file. I have been following guides and I am not sure why I get this error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: fs.readFileSync is not a function</p>
  </blockquote>
  
  <p>I have tried many fixes and cannot seem to figure this one out.</p>