<< Click to Display Table of Contents >> Navigation: Macros > Macro commands and parameters > Macro reporting commands > Macro write to a text file > Macro command TfWriteLn |
Purpose:
Write to one line of a text file and include a linefeed
General notation:
TfWriteLn( FileIndex, value1 [ , value2 [ , value3 ... ] ] )
The separator has been defined by TfOpenForWrite and will be written between the values.
Text values will be written as text.
Text values with additional quotation marks will be written between quotation marks.
The command TfWriteLn generates one line feed.
Example:
TfOpenForWrite( 1, 'output.txt' )
Set( a, 1.2345 )
TfWriteLn( 1, ''one'', 2, 3, 4, 'five', 6, a:6:2 )
TfWriteLn( 1, ''one'', 2, 3, 4, 'five', 6, a:6:2 )
TfClose(1)
Results in:
'one';2;3;4;five;6; 1.23
'one';2;3;4;five;6; 1.23
See also:
Back to reporting commands.