reads a string from the current input stream until eol
INCLUDE 'iolib.h' readln(InputString)
readln(String) (o)
string(String) (o) string that was read
Reads a string from the input stream and matches it with Term. The term must be followed by a newline or end of line character which is removed from the current input stream. Fails in case of end of file or if the user presses the escape <ESC> key while using keyboard input.
file_str("test","Hello World"), readdevice(Old), openread(f,"test"), readdevice(f), readln(X), readdevice(Old), closefile(f), write(X),nl.
No runtime errors.
prolog-process, client-server, object
get , read , readchar , readdevice