title: File Write Operation in javascript
body: <p>I need to write into a file in javascript.I tried below Code.I got error like"FileWriter is not defined".please help me in this.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
   &lt;input type = "button" value = "write" onclick="WriteFile()"&gt;
  &lt;script&gt;
  
  function WriteFile()
  {
  var fileWriter = new FileWriter("C:\Users\ananthi\Desktop\readme.txt");
  fileWriter.open() ; 
  fileWriter.writeLine("Another line") ; 
  fileWriter.close() ;
  
  }
  
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>