title: Using PhoneGap FileWriter.write for "big" files
body: <p>I have a problem in my PhoneGap app. I would like to write a file of 15 MB. If I try the OS pulls more and more memory and the app crashes without message. I can reproduce this on android and blackberry tablets. Is there a way to implement the writing more efficient?</p>
  
  <p>best regards</p>
  
  <pre><code>fe.createWriter(
  (fw: any) =&gt; {
      fw.onwriteend = (e) =&gt; {
          fw.onwriteend = (e) =&gt; {
              callback();
          }
          fw.write(data);
      }
  
      // write BOM (dead for now)
      fw.write("");
  },
  (error: any) =&gt; {
      alert("FileWriter Failed: " + error.code);
  });
  </code></pre>
  
  <p>It's TypeScript, I hope JS developers won't struggle with this ;)</p>