either gets or sets the host-servers current directory
INCLUDE 'iolib.h' cd(Dir),write(Dir),nl, cd('../user/prg')
string(Directory) (i) Directory to which to switch
string(Directory) (o) path of the current directory
If Directory is instantiated to a valid Directory, addressed either absolute of relative, it is set to be the new current directory. If Directory is unbound, it is bound to a string describing the current directory.
fails if Directory is bound to something other than a string, or if the current directory was not set for some reason (e.g. Directory does not exist).
prolog-process, client-server, object
openread , openwrite , see , tell