import { read } from "https://deno.land/x/deno@v0.28.0/cli/js/files.ts";
Read from a file ID into an array buffer.
Resolves with the number | EOF
for the operation.
const file = await Deno.open("/foo/bar.txt");
const buf = new Uint8Array(100);
const nread = await Deno.read(file.rid, buf);
const text = new TextDecoder().decode(buf);