TextOutputStream.Close

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
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.Text)
t.Close
End If