FileEntry

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The FileEntry interface of the File System API represents a file in a file system. It lets you write content to a file.

About this document

This specification is more or less abandoned as it didn't get significant traction among browser makers.

Basic concepts

To write content to file, create a FileWriter object by calling createWriter().

Example

The following code creates an empty file called "log.txt" (if it doesn't exist) and fills it with the text 'Meow'. Inside the success callback, event handlers are set up for error and writeend events. The text data is written to the file by creating a blob, appending text to it, and passing the blob to FileWriter.write().