Skip to content

Close_Input

Include: Use System\FileSystem.pkg

See Also: Direct_Input, Read, Read_Line, Seq_Release_Channel, Sequential Channels

Purpose

Closes a sequential input file.

Syntax

Close_Input [Channel {ChannelNumber}]

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

Example

Handle hFile
String sLine

Get Seq_New_Channel to hFile
Direct_Input Channel hFile FILE "test1.txt"
Read_Line Channel hFile sLine
Close_Input Channel hFile
Send Seq_Release_Channel hFile