TextOutputStream.Close

From Xojo Documentation

Method

TextOutputStream.Close()

Supported for all project types and targets.

Closes the TextOutputStream.

Example

This example closes the TextOutputStream after the write operation is complete.

Var f As FolderItem
Var t As TextOutputStream
f = FolderItem.ShowOpenFileDialog(FileTypes1.Text)
If f <> Nil Then
t = TextOutputStream.Open(f)
t.Write(TextField1.Value)
t.Close
End If