import { Deno } from "https://deno.land/x/deno@v0.28.0/cli/js/lib.deno_runtime.d.ts";
const { readSync } = Deno;
Read synchronously from a file ID into an array buffer.
Return number | EOF
for the operation.
const file = Deno.openSync("/foo/bar.txt");
const buf = new Uint8Array(100);
const nread = Deno.readSync(file.rid, buf);
const text = new TextDecoder().decode(buf);