Skip to content

Close_Output

Include: Use System\FileSystem.pkg

See Also: Direct_Output, Append_Output, Flush_Output, Write, Seq_Release_Channel, Sequential Channels

Purpose

Closes a sequential output file.

Syntax

Close_Output [Channel {ChannelNumber}]

Use Seq_New_Channel when opening files in application code; see Sequential Channels.

Example

Handle hFile

Get Seq_New_Channel to hFile
Direct_Output Channel hFile FILE "test1.txt"
Write_Line Channel hFile "This is some text."
Close_Output Channel hFile
Send Seq_Release_Channel hFile