include(File)
Includes a file contents, which must be valid terms, at the place of occurrence of the directive. The file can be specified as a relative path, an absolute path, or using library notation. If the file name have an extension, it must not be omitted.
This directive can be used as either a file directive or an entity directive. As an entity directive, it can be used both in entities defined in source files and with the entity creation built-in predicates.
include(@source_file_name)
:- include(data('raw_1.txt')). :- include('factbase.pl'). :- include('/home/me/databases/cities.pl'). ?- create_object(cities, [], [public(city/4), include('/home/me/databases/cities.pl')], []).