Skip to main content
Module

x/aleph/deps.ts>bufio.BufReader#readString

The Full-stack Framework in Deno.
Very Popular
Go to Latest
method bufio.BufReader.prototype.readString
import { bufio } from "https://deno.land/x/aleph@v0.3.0-alpha.7/deps.ts";
const { BufReader } = bufio;

readString() reads until the first occurrence of delim in the input, returning a string containing the data up to and including the delimiter. If ReadString encounters an error before finding a delimiter, it returns the data read before the error and the error itself (often null). ReadString returns err != nil if and only if the returned data does not end in delim. For simple uses, a Scanner may be more convenient.

Parameters

delim: string

Returns

Promise<string | null>