Deutsch English
Alphabetical index
Array functions
CGI functions
Data types
Date functions
Debugging
Fulltext functions
Language elements
Numerical functions
Operators
Other functions
Ramtext functions
Selecting
Socket functions
Statistical functions
Stream functions
String functions
System functions
Table functions
Text functions
  • close()
  • convline()
  • eot()
  • read()
  • readln()
  • reset()
  • rewrite()
  • tappend()
  • write()
  • writeln()
    Home    Overview    Search    Impressum    Contact    Members
    Topic complex Text functions
    Function eot()
    Short Signals the end of a text file
    Syntax EOT(text_handle : INTEGER) : INTEGER
    Parameter text_handle from RESET
    Return 0 : end of text has not been reached yet
    1 : end of text has been reached
    See also:
    reset() close()
    Description Use Eot() when you are reading a text file in a loop. As soon as the text files and has been reached Eot() will return true so you can leave the loop.

    As soon as Eot() returns 1, it must not be read from the text file anymore.

    Example 1:

    Give out a complete textfile line by line

    VAR t : INTEGER
      IF t:=reset('mytext.txt') THEN
        WHILE NOT EOT(t) DO
           cgiwriteln(readln(t))
        END
        close(t)
      END


    User comments:
    Write a comment:
    Name
    EMail
    Subject
    Text (Switch mode)

    Choose between
    the normal and the
    advanced editor.
    The advanced editor
    runs in IE 5+ and
    Mozilla 1.4+ only
    SPAM-Protection Please enter tdbengine in this field.

    tdbengine chat
    irc.tdbengine.org
    #tdbengine

       Copyright © 2003-2004 tdb Software Service GmbH
       Alle rechte vorbehalten. / All rights reserved
       Last changed: 21.10.2004
    {Fehler für :execmacro{execmacro="sessionspy"}