consult(:File)Read File as a Prolog source file. Calls to consult/1
may be abbreviated by just typing a number of filenames in a list.
|% consult |
library lists |
|% Type program on
the terminal |
The predicate consult/1
is equivalent to
load_files(File, ), except for handling
the special file
user, which reads clauses from the
terminal. See also the
stream(Input) option of load_files/2.