Here is my file:
Here is proof of where the file is located:
Here's what I typed into the GNU Prologue console:
| ?- change_directory('C:/Users/Aidan/Desktop/Prolog practice').
yes
| ?- [hello_world].
Expected result:
compiling C:/Users/Aidan/Desktop/Prolog practice/hello_world.pl for byte code...
Actual result:
uncaught exception: error(existence_error(source_sink,'hello_world.pl'),consult/1)
I have tried different file names, different folders, using the "consult
" command, and using the absolute path instead of the filename. All result in the same error. Please help?