WebAPI/FileHandleAPI: Difference between revisions

Line 105: Line 105:
  // it won't be stored as a separate file, the operation will only add another database
  // it won't be stored as a separate file, the operation will only add another database
  // reference.
  // reference.
==== A simple write operation ====
var lockedFile = myFile.open("readwrite");
var request = lockedFile.write("foo");
request.onsuccess = function(event) {
  // The string "foo" has been written.
}


== Links ==  
== Links ==  
Confirmed users
58

edits