Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Interface

TextReader

interface TextReader

Module: System.IO
Assembly: System.Runtime.dll
Source file: TextReader.rvn

Asynchronous decoded text reads sharing one logical cursor.

Implementing types

Documented types in this API reference. Indirect relationships are marked.

Properties

1 item
NewLine: string Exact nonempty line delimiter, removed from ReadLine results. Defaults to LF. Defined by TextReader.NewLine · Required implementation (no default).

Methods

7 items
Close() -> () Closes the reader idempotently. Defined by TextReader.Close · Required implementation (no default).
PeekChar() -> Task<Result<Optional<Character>, TextReadError>> Peeks at the next grapheme without consuming it; None denotes EOF. Defined by TextReader.PeekChar · Required implementation (no default).
Read(count: int, maxUtf8Bytes: int) -> Task<Result<string, TextReadError>> Reads the requested grapheme count with a separate result byte bound. Defined by TextReader.Read · Required implementation (no default).
Read(count: int) -> Task<Result<string, TextReadError>> Reads the requested grapheme count, or the shorter remainder at EOF. Defined by TextReader.Read · Required implementation (no default).
ReadChar() -> Task<Result<Optional<Character>, TextReadError>> Reads one grapheme; None denotes EOF. Defined by TextReader.ReadChar · Required implementation (no default).
ReadLine(maxUtf8Bytes: int) -> Task<Result<Optional<string>, TextReadError>> Returns a Task; await completion. Reads a decoded line without its LF or CRLF terminator. Defined by TextReader.ReadLine · Required implementation (no default).
ReadToEnd(maxUtf8Bytes: int) -> Task<Result<string, TextReadError>> Returns a Task; await completion. Reads remaining text subject to a UTF-8 output-byte bound. Defined by TextReader.ReadToEnd · Required implementation (no default).