Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/files.ts>seek

A modern runtime for JavaScript and TypeScript.
Go to Latest
function seek
import { seek } from "https://deno.land/x/deno@v0.28.0/cli/js/files.ts";

Seek a file ID to the given offset under mode given by whence.

 const file = await Deno.open("/foo/bar.txt");
 await Deno.seek(file.rid, 0, 0);

Parameters

rid: number
offset: number
whence: SeekMode

Returns

Promise<void>