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

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

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

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

  const file = Deno.openSync("/foo/bar.txt");
  Deno.seekSync(file.rid, 0, 0);

Parameters

rid: number
offset: number
whence: SeekMode