eof()
Check whether the EOF flag of standard input is set or not. This is similar to C++'s ios::eof function
eof()
There are no parameters.
boolean — Returns true if the EOF flag is set, and returns false if otherwise
while !eof()
s = readln()
writeln(s)
endwhile
This function is available on Dinfio version 3.1.06 or later