Kaya 0.5.2 reference for IO::eof

List of functions and data types in IO

Bool eof(File handle)

Arguments

Usage

This returns true if the end of the file has been reached, and false otherwise. It is always false after fseek.

lines = [];
while (!eof(h)) {
    push(lines,get(h));
}

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya