TextOutputStream.Close

From Xojo Documentation

Revision as of 00:12, 13 February 2022 by Gperlman (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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