Checking for the End of a File or the End of a Line

PC-DMIS allows you to check for the End of a File by using the functions EOF or EOL in a conditional test.

EOF stands for END OF FILE. This function takes a file pointer of type string. When properly placed within a conditional statement, it tests to see if the file pointer has reached the end of the specified file. If it has, then the function returns true.

EOL stands for END OF LINE. This function takes a file pointer of type string. When properly placed within a conditional statement, it tests to see if the file pointer has reached the end of a line in the specified file. If it has, then the function returns true. This works best inside of a loop.

The syntax of this command in the Edit window is:

EOF(<filepointer>) or EOL(<filepointer>)

Descriptions for some of the components of this command are:

<filepointer>
This is the name of the file pointer that you're checking.

More:

Sample code for EOF and EOL