TextOutputStream.Close

From Xojo Documentation

Revision as of 02:21, 30 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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