[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
     NAME: Eoln

     USE: Function to determine the end-of-line status of a text file.

     DEPENDENCY: None

     SYNTAX: Eoln(FVar);

     EXAMPLE: Program TestEOF;
              Var
                 FVar    : Text;
                 OutChar : Char;

              Begin
                 Assign(FVar,'TESTEOF.PAS');
                 {$I-}
                 Reset(FVar);
                 {$I+}
                 if IOResult <> 0 then
                 Begin
                    Writeln('File not found');
                    Halt;
                 end;
                 While not Eoln(FVar) do
                 Begin
                    Read(FVar,OutChar);
                    Write(OutChar);
                 end;
                 Close(FVar);
              end.

See Also: Assign Append Close Eoln Erase Reset ReWrite
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson