[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)


Reads a string of length Count


Source position: classesh.inc line 1110

public function TStringStream.ReadString(

  Count: LongInt



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 TStream.ReadAnsiString method, which first reads a length integer to determine the length of the string to be read.

See also



Reads from the stream.



Read an ansistring from the stream and return its value.

Documentation generated on: May 14 2021