title: Cannot access files inside asar archive in electron app
body: <p>Electron version: 1.2
  Operating system: Windows</p>
  
  <p>Cannot able to access the files inside asar archive using readFileSync:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>var fs = require('fs');
  var SQL = require('sql.js');
  var filebuffer = fs.readFileSync('asar:'+ __dirname + './app/data/sample.db');
  
  I've also tried using 
  trial 1 : readFileSync('D:/Sample-App/app.asar/app/data/sample.db');
  
  trial 2 : readFileSync('./app/data/sample.db');
  
  trial 3 : process.noAsar= true;
  readFileSync('./app/data/sample.db');</code></pre>
  </div>
  </div>
  </p>
  
  <p>None of the trials worked out. If I try without using app.asar, I was able to access the db file. So Please help me resolve this issue.</p>