Class Consult

  • All Implemented Interfaces:
    KnowledgeBaseConsumer, PredicateFactory

    public final class Consult
    extends AbstractSingleResultPredicate
    consult(X) - reads clauses and goals from a file.

    consult(X) reads clauses and goals from a file. X must be instantiated to the name of a text file containing Prolog clauses and goals which will be added to the knowledge base.