SWI-Prolog Query

Pavan Kumar <[email protected]> Tue, 15 Apr 2014 09:47:26 -0500
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAFVqwvi=ikEbOTUPdSP5x8KiUBjVTd3W_3PLkX-NS4sh7hvaBg@mail.gmail.com>
I have a Java Program that generates a SWI-Prolog Query and writes to a
file, I need to Invoke SWI-Prolog from my Java Program and SWI-Prolog
should take the file having the Query as Input and write the Output to
another file.
So, I found Open(/4) in SWI-Prolog but didn't understand it, its usage and
how to make SWI-Prolog execute the Command in that file and also specify
the Target Output file that SWI-Prolog should write to.

Also Is it possible to call SWI-Prolog from my Java Program and make it
execute the Query in file? if yes, can anyone let me know how to do it?
Also, There can be one or more commands in the Input file for SWI-Prolog It
should execute the commands in that file and write output to a Target file
mentioned.
-------------- next part --------------
HTML attachment scrubbed and removed