How to import .pl file on SWI PROLOG? -
i downloaded swi prolog mac, , reason there's no 'import' button in menu bar. so, wondering if there's way import .pl file using code maybe, , how can include path of .pl file in code.
thank in advance :)
you can use consult
command under file
menu.
from query prompt (?-
), can put path file string inside of square brackets:
?- ['~/desktop/my_pgm.pl'].
Comments
Post a Comment