FileSystemWritableFileStream: seek() method

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

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

seek(position)

Parameters

position

An unsigned long describing the byte position from the top (beginning) of the file.

Return value

Promise which returns undefined.

Exceptions

NotAllowedError DOMException

If the PermissionStatus.state is not 'granted'.

TypeError

If position is not defined or of type unsigned long.

Examples

Todo

Specifications

Specification
File System Standard
# api-filesystemwritablefilestream-seek

Browser compatibility

BCD tables only load in the browser

See also