16 lines
577 B
Plaintext
16 lines
577 B
Plaintext
\b;Instrukcja \c;eof\n;
|
|
Sprawdza warunek końca otwartego pliku. Jest to metoda klasy \c;\l;file\u cbot\file;\n;; wobec czego zamiast \c;eof()\n; należy napisać \c;handle.eof()\n;¦:
|
|
\c;
|
|
\s; if ( handle.eof() )
|
|
\n;
|
|
Przykład¦:
|
|
\c;
|
|
\s; while ( not handle.eof() )
|
|
\s; {
|
|
\s; s = handle.readln();
|
|
\s; }
|
|
\n;
|
|
\t;Zobacz również
|
|
\c;\l;file\u cbot\file;\n;, \c;\l;open\u cbot\open;\n;, \c;\l;close\u cbot\close;\n;, \c;\l;readln\u cbot\readln;\n; i \c;\l;writeln\u cbot\writeln;\n;.
|
|
\l;Programowanie\u cbot;, \l;typy\u cbot\type; i \l;kategorie\u cbot\category;.
|