Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Chapter 2/EOLN and EOF/de

Sent here from EOLN and EOF/de.

Deutsch · English · Français · Български · 中文(中国) · 日本語

2E - EOLN und EOF

(Autor: Tao Yue, Übersetzung ins Deutsche)

EOLN ist eine Boolesche Funktion, die TRUE ist, wenn Du das Ende einer Zeile in einer geöffneten Eingabedatei erreicht hast.

pascal
eoln (file_variable)

Wenn Du testen willst, ob sich die Standardeingabe (die Tastatur) am Zeilenende befindet, gebe einfach eoln ohne Parameter ein. Dies entspricht der Art und Weise, wie read und write die Konsole (Tastatur und Bildschirm) verwenden, wenn sie ohne Dateiparameter aufgerufen wird.

pascal
eoln

EOF ist eine Boolesche Funktion, die TRUE ist, wenn Du das Ende der Datei erreicht hast.

pascal
eof (file_variable)

Normalerweise gibst Du das Zeichen end-of-file nicht über die Tastatur ein. Auf DOS/Windows-Maschinen ist das Zeichen Control-Z. Auf UNIX/Linux-Rechnern ist das Zeichen Control-D.


From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 2/EOLN and EOF/de", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by Kai Burghardt .

Edited on wiki.freepascal.org by 3 people, 2018–2022

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
GenosseCreated page
TrevFixed syntax highlighting (minor)
Kai BurghardtKai Burghardt moved page EOLN and EOF/de to Basic Pascal Tutorial/Chapter 2/EOLN and EOF/de: tidy up main name space: create subpage hierarchy for basic Pascal tutorial [cf. [[Special: PermaLink/14977... (minor)
Kai Burghardtbypass redirects [cf. discussion]
Kai Burghardtbypass language bar/categorization template redirect [cf. discussion] (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.