16 lines
569 B
Plaintext
16 lines
569 B
Plaintext
![]() |
\b;Instrukcja \c;eof\n;
|
|||
|
Sprawdza warunek ko<6B>ca otwartego pliku. Jest to metoda klasy \c;\l;file\u cbot\file;\n;; wobec czego zamiast \c;eof()\n; nale<6C>y napisa<73> \c;handle.eof()\n;<3B>:
|
|||
|
\c;
|
|||
|
\s; if ( handle.eof() )
|
|||
|
\n;
|
|||
|
Przyk<EFBFBD>ad<EFBFBD>:
|
|||
|
\c;
|
|||
|
\s; while ( not handle.eof() )
|
|||
|
\s; {
|
|||
|
\s; s = handle.readln();
|
|||
|
\s; }
|
|||
|
\n;
|
|||
|
\t;Zobacz r<>wnie<69>
|
|||
|
\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;.
|