Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
4 results across 6 corpora for FileSystemWritableFileStream: seek() method.
Developer library 4
FileSystemWritableFileStream
File System API The **`FileSystemWritableFileStream`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk. The interface is accessed through the FileSystemFileHandle.createWritable() method. ## Instance properties _Inherits properties from its parent, WritableStream._ ## Instance methods _Inherits methods from its parent, Wri
FileSystemWritableFileStream: seek() method
File System API The **`seek()`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method. ## Syntax ```js-nolint seek(position) ``` ### Parameters - `position` - : A number specifying the byte position from the beginning of the file. ### Return value A Promise that returns `undefined`. ### Exceptions - `NotAllo
FileSystemWritableFileStream: write() method
File System API 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 t
File System API
cs/Web/API/File_System_API/Origin_private_file_system) for instructions on how to use it. ### Saving files - In the case of the asynchronous handles, use the FileSystemWritableFileStream interface. Once the data you'd like to save is in a format of Blob, String object, string literal or buffer, you can open a stream and save the data to a file. This can be the existing file or a new file. - In the case of the synch