I have this predicate that has about a thousand possibilities and I need all possibilities as an output. It is not possible to simply copy and paste all listed possibilities in SWI-Prolog on Windows since you can only scroll up so much.
My predicate looks like this:
?- question(X,Y,Z).
X = 'Fo',
Y = 'Ob',
Z = 'Ar' ;
X = 'Fo2',
etc...
I was wondering if there was a way to save the result in a file or something?
You can use something like this:
Or you can run the query
( question(X,Y,Z), writeln([X, Y, Z]), fail ; true ).in Prolog and get all solutions at standard output (screen).