Function EOLN returns TRUE if the file pointer of an open text file has reached a carriage return within the file. Parameter fileName specifies a text file which is open for reading or writing.
FUNCTION EOLN(fileName : STRING): BOOLEAN;def vs.EOLN(fileName):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| fileName | STRING | Name of file. |
BEGIN
Open('MyData');
WHILE NOT EOLN('MyData') DO BEGIN
Read(a,b,c,d);
END;
Close('MyData');
END;Availability: from All Versions