consult- read a Prolog program
consult(+FileName)
FileName must be the name of a file containing a Prolog program. Clauses in the file are read and interpreted just as they would be if typed directly to the interpreter.
Consult instructs the interpreter to read the program which is in file FileName. When a directive is read it is immediately executed. When a clause is read it is put after any clauses already read by the interpreter for that procedure.
A side-effect of consulting a file is that Prolog asserts a clause of the form:
file(FileName, ProcList)
into the database. ProcList is a list of the names of procedures defined in FileName.