Read Reader r until EOF (null) and resolve to the content as Uint8Array.
Reader
r
null
The reader to read from
The content as Uint8Array
import { readAll } from "@std/io/read-all";// Example from stdinconst stdinContent = await readAll(Deno.stdin);// Example from fileusing file = await Deno.open("my_file.txt", {read: true});const myFileContent = await readAll(file); Copy
import { readAll } from "@std/io/read-all";// Example from stdinconst stdinContent = await readAll(Deno.stdin);// Example from fileusing file = await Deno.open("my_file.txt", {read: true});const myFileContent = await readAll(file);
Read
Readerruntil EOF (null) and resolve to the content as Uint8Array.