opens a file for standard input
INCLUDE 'iolib.h'
see("data")
see(FileName) (i)
string(FileName) (i) Name of the file to be opened
Opens a file for reading and sets it as current input stream.
NOTE: You should not mix up the old fashioned see(), seeing
(), seen predicates with the readdevice
(), closefile (), or gotowindow
() predicates. Always close files with the predicates belonging to the same
family!
file_str(test,"Hello World"), see(test), readln(X), seen, write(X),nl.
A runtime error occurs if the file was not opened properly.
prolog-process, client-server, object
seeing , seen , tell , telling , told , read , readln , readchar , get , openread , readdevice