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.