Basic Pascal Tutorial/Chapter 2/EOLN and EOF/de: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Basic Pascal Tutorial/Chapter 2/EOLN and EOF/de
| Old | New | Line | |
|---|---|---|---|
| 1 | + | ## 2E - EOLN und EOF | |
| 2 | + | ||
| 3 | + | *(Autor: Tao Yue, Übersetzung ins Deutsche)* | |
| 4 | + | ||
| 5 | + | `EOLN` ist eine Boolesche Funktion, die `TRUE` ist, wenn Du das Ende einer Zeile in einer geöffneten Eingabedatei erreicht hast. | |
| 6 | + | ||
| 7 | + | ``` pascal | |
| 8 | + | eoln (file_variable) | |
| 9 | + | ``` | |
| 10 | + | ||
| 11 | + | 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. | |
| 12 | + | ||
| 13 | + | ``` pascal | |
| 14 | + | eoln | |
| 15 | + | ``` | |
| 16 | + | ||
| 17 | + | `EOF` ist eine Boolesche Funktion, die `TRUE` ist, wenn Du das Ende der Datei erreicht hast. | |
| 18 | + | ||
| 19 | + | ``` pascal | |
| 20 | + | eof (file_variable) | |
| 21 | + | ``` | |
| 22 | + | ||
| 23 | + | 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`. | |
| 24 | + | ||
| 25 | + | --- | |
| 26 | + | *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](/wiki-contact).* |
