title: How to Write in file (user directory) using JavaScript?
body: <p>I want to write into txt of any file from chrome(All version) using html5 and javascript or jquery.</p>
  
  <p>I have tried FileSystem API and code I tried is:</p>
  
  <pre>
  function onFs(fs) {
   console.log('test');
    fs.root.getFile('log.txt', {create: true, exclusive: true},
        function(fileEntry) {
          // fileEntry.isFile === true
          // fileEntry.name == 'log.txt'
          // fileEntry.fullPath == '/log.txt'
  
          fileEntry.getMetaData(function(md) {
            console.log(md.modificationTime.toDateString());
          }, onError);
  
        },
        onError
    );
  }
  
  window.webkitRequestFileSystem(TEMPORARY, 1024*1024 /*1MB*/, onFs);
  </pre>
  
  <p>But not working.</p>
  
  <p>Is there any way to write into the file?</p>