2
votes

I just downloaded the SWI PROLOG for mac, and for some reason there's no 'import' button in the menu bar. So, I was wondering if there's any way I could import the .pl file using code maybe, and how I can include the path of the .pl file in my code.

Thank you in advance :)

3

3 Answers

2
votes

You can use the Consult command under the File menu.

From the query prompt (?-), you can put the path to the file as a string inside of square brackets:

?- ['~/Desktop/my_pgm.pl'].
1
votes

You do have a ?- prompt.

type the name of your file in square brackets, like Scott says

0
votes

maybe you renamed the executable in some way ? On Linux, I'm experiencing a similar issue (no menubar at all) if I copy a link from the build folder to desktop, where then it's seen as Link to swipl-win. Renaming the link to swipl-win adjust the menubar as well. So strange...