Skip to content

Flush_Output

Include: Use System\FileSystem.pkg

See Also: Append_Output, Direct_Output, Close_Output, Write, Write_Line, Sequential Channels

Purpose

Immediately forces cached output data to be written for an open output channel.

Syntax

Flush_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."
Flush_Output Channel hFile
Close_Output Channel hFile
Send Seq_Release_Channel hFile