import { io } from "https://deno.land/x/clippy@v0.2.1/deps.ts";
const { readStringDelim } = io;
Read Reader chunk by chunk, splitting based on delimiter.
Examples
Example 1
Example 1
import { readStringDelim } from "https://deno.land/std@0.224.0/io/read_string_delim.ts";
import * as path from "https://deno.land/std@0.224.0/path/mod.ts";
const filename = path.join(Deno.cwd(), "std/io/README.md");
let fileReader = await Deno.open(filename);
for await (let line of readStringDelim(fileReader, "\n")) {
console.log(line);
}
Parameters
reader: Reader