Hi,
I want to solve a query that can have multiple answers and I want the answers to be output to a text file.
The problem is that I can only get the first answer to output and not the rest.
My code is as follows.
solve:-
top_goal(X),
open('out.txt',append,OS),
write(OS,X),nl(OS)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.