IIOStreamClass.ReadString

Syntax

ReadString(Value: IIOStream): String;

Parameters

Value. Stream, from which a string is read.

Description

The ReadString method reads a string in Unicode encoding from a stream.

Example

In the example the stream is represented by the file C:\Stream.txt.

Sub UserProc;

Var

f: IFile;

BinR: IBinaryReader;

Begin

f := New File.Create As IFIle;

BinR := f.OpenBinaryReader("C:\Stream.txt");

Debug.WriteLine(IOStream.ReadString(BinR.Stream));

End Sub UserProc;

After executing the example a string read from a stream is displayed in the console window.

See also:

IIOStreamClass