title: is there a way to create file and write data to it using javascript/jquery
body: <p>Is there a way to create and write data to a file using javascript/jquery. I referred this link <a href="https://gist.github.com/Arahnoid/9925725#file-read-write-file-js" rel="nofollow">https://gist.github.com/Arahnoid/9925725#file-read-write-file-js</a> . But it gives me error for tis line </p>
  
  <pre><code>var file = new File("E:/abc/sample.txt); 
   error: NS_ERROR_FAILURE: in firefox
  </code></pre>