Sign in Join
Wiki copytemporary

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

Sent here from EOLN and EOF/bg.

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

EOLN и EOF

(author: Tao Yue, state: unchanged)

EOLN е булева функция, която е TRUE, когато сте стигнали до края на ред в отворен входен файл.

pascal
eoln (file_variable)

Ако искате да тествате, за да видите дали стандартният вход (клавиатурата) е в края на реда, просто използвайте eoln без никакви параметри. Това е подобно на начина, по който read и write използват конзолата (клавиатура и екран), ако са извикани без параметър на файл.

pascal
eoln

EOF е булева функция, която е TRUE когато сте стигнали до края на отворен файл.

pascal
eof (file_variable)

Обикновено не въвеждате символа end-of-file от клавиатурата. На DOS/Windows машини символът е Control-Z. На машини UNIX/Linux символът е Control-D.


From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 2/EOLN and EOF/bg", 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 2 people, 2021–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
AlpinistbgCreated page
Alpinistbg (minor)
Alpinistbg (minor)
Kai BurghardtKai Burghardt moved page EOLN and EOF/bg to Basic Pascal Tutorial/Chapter 2/EOLN and EOF/bg: 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.