Sign in Join
Wiki copytemporary

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

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

Tutoriel de Pascal Objet : Entrée/sortie / Fin de ligne et fin de fichier (EOLN et EOF)

EOLN est une fonction booléenne qui vaut TRUE quand vous avez atteint la fin d'une ligne dans un fichier d'entrée.

pascal
eoln (file_variable)

Si vous voulez tester l'entrée standard (le clavier), appelez eoln sans paramètre. Ceci est similaire à la manière par laquelle read et write utilisent la console (clavier et écran) si elles sont appelées sans paramètre.

pascal
eoln

EOF est une fonction booléenne qui est TRUE quand vous avez atteint la fin du fichier.

pascal
eof (file_variable)

Généralement, vous n'entrez pas le caractère end-of-file au clavier. Sur les machines DOS/Windows, ce caractère est Control-Z. Sur les machines Linux/Unix, ce caractère est Control-D.


From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 2/EOLN and EOF/fr", 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 WikiArchive .

Talk about this page

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