EOLN is a Boolean function that is TRUE when you have reached the
end of a line in an open input file.
     eoln (file_variable)
If you want to test to see if the standard input (the keyboard) is at
an end-of-line, simply issue eoln without any parameters:
     eoln
EOFTRUE when you have reached the
end of the file.
     eof (file_variable)
or
     eof
for the standard input.
Usually, you don't type the end-of-file character from the keyboard. On DOS/Windows machines, the character is Control-Z or F6. On UNIX/Linux machines, the character is Control-D.
![]() Previous lesson |
![]() To assignment |
![]() Contents |
![]() Index |
![]() e-mail me |