read

fun read(buffer: AllowSharedBufferSource, options: FileSystemReadWriteOptions = definedExternally): UInt53(source)

The read() method of the FileSystemSyncAccessHandle interface reads the content of the file associated with the handle into a specified buffer, optionally at a given offset.

MDN Reference