Sign in Join
FPDoc Onlineexperiment

TStringStream.ReadString function

Member of TStringStreampublicIn unit Classes

Reads a string of length Count.

Declaration

pascal
function ReadString(Count: LongInt): string

Description

ReadString reads Count bytes from the stream and returns the read bytes as a string. If less than Count bytes were available, the string has as many characters as bytes could be read.

The ReadString method is a wrapper around the Read method. It does not do the same string as the ReadAnsiString method, which first reads a length integer to determine the length of the string to be read.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.