Macro function TfEOF

<< Click to Display Table of Contents >>

Navigation:  Macros > Macro commands and parameters > Macro input commands > Macro read from a text file >

Macro function TfEOF

Purpose:

Function to test the end of a text file

 

General notation:

TfEOF( FileIndex )

 

Example:

TfOpenForRead( 1, 'output.txt' )

While( TfEOF(1) , = , FALSE )

  TfReadln(1,a,b)

  Text('a=',a,' b=',b)

end

TfClose(1)

 

See also:

TfOpenForRead

TfRead

TfReadLn

TfClose

 

Back to input commands.