Table of Contents

Method ReadBlock

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

ReadBlock(StringReader, int)

Reads up to the specified number of characters from the reader.

public static string ReadBlock(this StringReader stringReader, int length)

Parameters

stringReader StringReader

The reader to read from.

length int

The maximum number of characters to read.

Returns

string

A string containing the characters read, which may be shorter than length if the end is reached.