You may be in the (good) habit of organising your work by putting material related to a particular topic into a (sub-)directory. If you decide to do this with your Prolog files, you need to be aware of difference in the way you specify the filename using consult.
If the file is in the root directory of your M drive, and the file has the form <filename>.pl, you simply type
| ?- consult(<filename>). <return>
|
If, however, you have created a directory called, say myprolog and your file <filename>.pl lies inside that directory, the above instruction will not work and you will receive an error message.
What you have to do is:
| ?- consult(’myprolog/<filename>.pl’). <return>
|
Alternatively, start Prolog and select Consult or Edit from the File menu and navigate to the relevant folder.