endOfFile(): Boolean;
The endOfFile method of the File class returns true if the end of the file has been reached. The code fragment in the following example shows the use of the endOfFile method.
while not file.endOfFile do line := file.readLine; tName := line[1:29].trimRight; tContact := line[31:24].trimRight; tAddress := line[56:end].trimRight; create cust; cust.loadSelf(company, tName, tAddress, tContact); endwhile;
The endOfFile method returns false if the file is not currently open.