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 this 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 this example, a string read from a stream is displayed in console window.
See also: