in SWI Prolog terminal how do I view the current working directory and change the current working directory?
I found:
working_directory(CWD, CWD)
but I dont think its what I need
in SWI Prolog terminal how do I view the current working directory and change the current working directory?
I found:
working_directory(CWD, CWD)
but I dont think its what I need
To get the current working directory use working_directory(CWD, CWD)
.
To change the current working directory use working_directory(_, NewCWD)
.
Check here to see the manual entry for this predicate.
To view the current directory use : pwd
.
And to change it use : working_directory(CWD,'path_or_location')
.
Example : working_directory(CWD,'C:/Users/Student/Destop')
.
Remember to change the direction of slashes in the path name.