Prolog code (source or QOF) can be loaded by submitting normal Prolog
load predicates as queries. Note that Quintus uses slashes /
in
file names where Windows uses backslash \
.
Example:
PrologQueryCutFail("load_files('d:/xxx/myfile')")
To facilitate the location of Prolog files, two file search paths are predefined:
app
That is, you can load the file myfile
located in the same
directory as the project/executable, issuing the query:
PrologQueryCutFail("load_files(app(myfile))")
vbqp
vbqp.dll
file.
That is, you can use the following query to load the file myfile
if it is located in the same directory as vbqp.dll
:
PrologQueryCutFail("load_files(vbqp(myfile))")