title: chrome.fileSystem api file to temp directory
body: <p>How can i write file to temp directory in chrome filesystem api?</p>
  
  <pre><code>        chrome.fileSystem.getWritableEntry("temp dir here", function(entry) {
              var uniqid = Math.floor((Math.random() * 10) + 1)+Date.now();
              entry.getFile(uniqid+'.txt', {create:true}, function(entry) {
                  entry.createWriter(function(writer) {
                      writer.write(new Blob([printText], {type: 'text/plain'}));
                  });
              });
          });
  </code></pre>
  
  <p>I need this unique <code>.txt</code> to write to temp dir and then get that location..</p>