consult/1
consult(Filename)
Read facts and rules from a text file into the internal database.
Remarks
consult/1 reads facts and rules from the text file FileName (created by saving a database with the save/1 predicate) and asserts them in the internal database.
If the file contains any syntactic errors, consult/1 generates an error.
Example
consult("DD.DBA").
--- Contents of "DD.DBA" might be ---
p1(1,'a',44.44,"PC","Prolog",[1,2,3,4])
p1(2,'b',-4.444E-98,"---","++++",[])
p2(88)
p2(99)
NOTE:
G.I.S. Prolog allows programs to consult other programs while being... consulted! Using the single-argument/arity ":-" operator inside a program instructs the interpreter to execute a series of goals (after the ":-") which may include consulting other files (which may -in turn- consult other files, ad.inf).