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