import { seek } from "https://deno.land/x/deno@v0.17.0/js/deno.ts";
Seek a file ID to the given offset under mode given by whence
.
(async () => {
const file = await Deno.open("/foo/bar.txt");
await Deno.seek(file.rid, 0, 0);
})();
import { seek } from "https://deno.land/x/deno@v0.17.0/js/deno.ts";
Seek a file ID to the given offset under mode given by whence
.
(async () => {
const file = await Deno.open("/foo/bar.txt");
await Deno.seek(file.rid, 0, 0);
})();