I have clips templates, facts, functions, and rules stored in separate .txt files. In the same directory I have a loader.txt file as shown below that attempts to load these files. Despite changing the directory, I get the unable to load file error. If I modify the paths in the loading function starting from "/users.../directory_with_files/file_name", the logic works without error.
(deffunction loading()
(load "templates.txt")
(load "facts.txt")
(load "functions.txt")
(load "rules.txt")
)
I would like to load these files in the same directory as loader.txt without specifying the path explicitly i.e., "/users.../directory_with_files/file_name"
I wasn't able to reproduce the issue using the console version of CLIPS on either Windows, macOS, or Ubuntu. Here's the output on Windows:
Here's the output on Ubuntu: