Xojo.IO.BinaryStream.WriteText
From Xojo Documentation
Method
Xojo.IO.BinaryStream.WriteText(value As Text, encoding As Xojo.Core.TextEncoding)
Supported for all project types and targets.
Supported for all project types and targets.
Writes the bytes in the Text. Raises an exception if the stream is not writable, or encoding is Nil.