ReadString(Value: IIOStream): String;
Value. Stream, from which a string is read.
The ReadString method reads a string in Unicode encoding from a stream.
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: