write method
The write()
method of the FileSystemWritableFileStream interface
writes content into the file the method is called on, at the current file
cursor offset.
No changes are written to the actual file on disk until the stream has been closed. Changes are typically written to a temporary file instead. This method can also be used to seek to a byte point within the stream and truncate to modify the total bytes the file contains.
Implementation
external JSPromise<JSAny?> write(FileSystemWriteChunkType data);