Consulting

Another way to run a program is to load it directly into the program area without compilation (called consulting). It is possible to trace the execution of consulted programs but not compiled ones. To consult a program in a file into the program area, type
      consult(fileName)
or simply
      [fileName].
As an extension, both consult/1 and []/1 accept a list of file names.

To see the consulted or dynamically asserted clauses in the program area, use

      listing
and to see the clauses defining a predicate Atom/Arity, use
      listing(Atom/Arity)



Neng-Fa Zhou 2012-01-03