Classes - stdin

The stdin class provides an I/O stream implementations that reads from the process's standard input stream. The following example reads all lines from standard input and echoes them to standard output:

:- import(stdin).
:- import(stdout).

main(_)
{
    new stdin(Stdin);
    while (Stdin.readLine(Line))
        stdout::writeln(Line);
}

The stdin class does not provide any static methods similar to the convenience methods of stdout.

Parent class
iostream
Class members
override canRead()
override readByte(Byte)
override readBytes(Bytes)
override readLine(Line)
See Also
stdout, stderr

Generated on 26 May 2011 for plang by  doxygen 1.6.1