BinaryStream.WritePString

From Xojo Documentation

Method

BinaryStream.WritePString(Text as String)

Supported for all project types and targets.

Writes the text passed as a Pascal string to the stream.

Sample Code

Var s As String = "theString"
Var writeStream As BinaryStream
writeStream.WritePString(s)