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

x/s3si/deps.ts>io.readAllSync

Export your battles from SplatNet to https://stat.ink
Go to Latest
function io.readAllSync
import { io } from "https://deno.land/x/s3si@gui-v0.4.16/deps.ts";
const { readAllSync } = io;

Synchronously reads ReaderSync r until EOF (null) and returns the content as Uint8Array.

Examples

Example 1

import { readAllSync } from "https://deno.land/std@0.224.0/io/read_all.ts";

// Example from stdin
const stdinContent = readAllSync(Deno.stdin);

// Example from file
using file = Deno.openSync("my_file.txt", {read: true});
const myFileContent = readAllSync(file);

Returns

Uint8Array