title: How to read file with async/await properly?
body: <p>I cannot figure out how <code>async</code>/<code>await</code> works. I slightly understand it but I can't make it work.</p>
  <pre class="lang-js prettyprint-override"><code>function loadMonoCounter() {
      fs.readFileSync(&quot;monolitic.txt&quot;, &quot;binary&quot;, async function(err, data) {
         return await new Buffer( data);
    });
  }
  
  module.exports.read = function() {
    console.log(loadMonoCounter());
  };
  </code></pre>
  <p>I know, I could use <code>readFileSync</code>, but if I do, I know I'll never understand <code>async</code>/<code>await</code> and I'll just bury the issue.</p>
  <p>Goal: Call <code>loadMonoCounter()</code> and return the content of a file.</p>
  <p>That file is incremented every time <code>incrementMonoCounter()</code> is called (every page load). The file contains the dump of a buffer in binary and is stored on a SSD.</p>
  <p>No matter what I do, I get an error or <code>undefined</code> in the console.</p>