Xojo.IO.BinaryStream.ReadText
From Xojo Documentation
Method
Xojo.IO.BinaryStream.ReadText(count As Integer, encoding As Xojo.Core.TextEncoding) As Text
Supported for all project types and targets.
Supported for all project types and targets.
Reads the next count bytes from the stream. Raises an exception if the file is not readable or if encoding is Nil.