1IO.eof(3kaya)                Kaya module reference               IO.eof(3kaya)
2
3
4

NAME

6       IO::eof - Check for end of file.
7

SYNOPSIS

9       Bool eof( File handle )
10

ARGUMENTS

12       handle The file handle
13

DESCRIPTION

15       This  returns  true  if the end of the file has been reached, and false
16       otherwise. It is always false after IO.fseek (3kaya)
17
18
19
20    lines = [];
21    while (!eof(h)) {
22        push(lines,get(h));
23    }
24

AUTHORS

26       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
27       (kaya@kayalang.org). For further information see http://kayalang.org/
28

LICENSE

30       The  Kaya  standard  library  is free software; you can redistribute it
31       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
32       License  (version  2.1  or  any later version) as published by the Free
33       Software Foundation.
34
36       IO.open (3kaya)
37
38
39
40Kaya                             December 2010                   IO.eof(3kaya)
Impressum