No, HTML5 does not have the FileWriter API. What you probably mean is the File API , which allows you to read files. And in Chrome, even extensions are not allowed to write files for security reasons. Therefore, if you do not want to associate the NPAPI plugin with your extension (which will cause a huge warning during installation), all you can do is run a download message that the user can accept - or not. See Cross Browser Save as .txt for a possible approach (Flash objects such as Downloadify are different). A.
Change I was wrong, there is a suggestion of the FileWriter API. It is very far from doing this.
Wladimir palant
source share