Get_Channel_Position¶
Include: Use System\FileSystem.pkg
See Also: Direct_Input, Direct_Output, Set_Channel_Position, Get_Channel_Size, Sequential Channels
Purpose¶
Returns the current byte position for an open channel.
Syntax¶
Get_Channel_Position {ChannelNumber} to {Position}
The position changes as data is read or written. Use Seq_New_Channel when opening files in application code; see Sequential Channels.
Example¶
Handle hFile
Integer iPosition
Get Seq_New_Channel to hFile
Direct_Input Channel hFile FILE "test1.txt"
Get_Channel_Position hFile to iPosition
Close_Input Channel hFile
Send Seq_Release_Channel hFile