I have two files, file1 and file2 with prolog extension, in file1 in some cases file2 is appended with new predicates, so I have to consult file2 in some specific area in file1, I did check this question question, but I want a different behavior, what I want to do is :
in file1
consult_File:-
consult('C:/Users/../Prolog/file2.pl').
and under specific condition, I can call consult_File, but unfortunately if I call consult_File within other codes in File1, it doesn't work, and if you call it explicitly from the command, it works. I appreciate if someone can help me.
Thanks