converts a file into a string and vice versa
INCLUDE 'iolib.h' file_str(FileName,String)
file_str(FileName,String) (i,i) (i,o)
string(FileName) (i) FileName of file to be read or written
string(String) (i) String that is to be write to the file
string(String) (o) Content of the file
Either writes the String to the file specified, or reads the file and stores the contents into String.
file_str("help.txt",Text), write(Text).
No runtime errors. Fails if file cannot be written or read.
prolog-process, client-server, object
openread , openwrite , see , tell