Xojo.IO.TextOutputStream.Flush
From Xojo Documentation
Method
Immediately sends the contents of internal write buffers to disk or to the output stream.
Sample Code
outputStream.Flush
Immediately sends the contents of internal write buffers to disk or to the output stream.