Is there a way in SWI Prolog to ask for consulted files? For example, I consulted two files with:
consult('load.pl').
consult('main.pl').
Now I need a predicate that give me all consulted files, because I want to check, if they are already loaded or not. At the moment, I'm building a gui for consulting files and I don't want that the user have to add one, if it is not necessary.