Write_Line¶
Include: Use System\FileSystem.pkg
See Also: Direct_Output, Append_Output, Write, Write_Block, Write_Hex, Read_Line, Sequential Channels
Purpose¶
Writes text to a sequential output file followed by the current line terminator.
Syntax¶
Write_Line [Channel {ChannelNumber}] {Value} ...
Behavior¶
Write_Line converts each supplied value to text using normal DataFlex string conversion, writes the text, then writes the current line terminator for that channel.
Values in the same command are written without an automatic separator. Supply spaces or commas when the output format requires them.
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 "First line"
Write_Line Channel hFile "Second" " " "line"
Close_Output Channel hFile
Send Seq_Release_Channel hFile