adds clauses from a file to the database
INCLUDE 'iolib.h' consult("data.dbs")
string(FileName) (i) Name of the file to be consulted
Reads and parses the file given by FileName. The file may contain clauses and facts,
separated by the dots. The current operator declarations are used.
NOTE: In this version of BAP neither comments nor keywords are allowed.
NOTE: To load compiled code to the system, use the load () or
load_all () predicates!
consult("data.dbs"), database(data(X)), write(X),nl. /* Contents of "data.dbs": '/
data("Hello World."). data("How are you?"). list([1,2,3,4]).
Weak error handling. Sorry. Will be updated soon.
prolog-process, client-server, object
clause , database , retract , retractall , load