Navigation  without Java Scripts

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)