write

The write() method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.

MDN Reference