H
H
habrdima2016-04-14 19:40:00
JavaScript
habrdima, 2016-04-14 19:40:00

Write to existing file file api?

There is such code in the example

chrome.fileSystem.getWritableEntry(chosenFileEntry, function(writableFileEntry) {
    writableFileEntry.createWriter(function(writer) {
      writer.onerror = errorHandler;
      writer.onwriteend = callback;

    chosenFileEntry.file(function(file) {
      writer.write(file);
    });
  }, errorHandler);
});

here is the link https://developer.chrome.com/apps/app_storage
the code should seem to write new information to a file, but how can I not understand where to write new information?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question