Re: listing(+Pred, -Atom)



with_output_to/2 is quite recent. If you're version doesn't have it you
might wish to update.

Thanks a lot. I will update. Thanks for providing swi, by the way.


If not, how could such a predicate be written? What other predicates
are there, besides "listing", for accessing the definition of a
predicate?

A better question, why would you want this?

I wrote a cgi script which is given data by the users. The data is
sent to a server program which stores them as prolog facts. I thought
it would be more elegant to assert each fact and to write the listings
of the facts to a data file in a structured manner than to append the
facts at the and of the data file and to reconsult the data file.

Simon


.



Relevant Pages

  • Re: Life in the US
    ... crap that Turner was listing) are the facts of record. ... You say "the country is falling apart..." ...
    (talk.politics.misc)
  • Re: Will Ted Kennedy Ever Become President?
    ... way I'm sure could have been a prosecutable offense even in 1969. ... I believe it could, depending on the facts. ... I was listing Quiggy's ...
    (alt.sports.football.pro.ne-patriots)
  • Re: Will Ted Kennedy Ever Become President?
    ... I believe it could, depending on the facts. ... I was listing Quiggy's ... No I'm doing it to point out he left the scene of an accident the ...
    (alt.sports.football.pro.ne-patriots)
  • Re: Will Ted Kennedy Ever Become President?
    ... I believe it could, depending on the facts. ... I was listing Quiggy's ... No I'm doing it to point out he left the scene of an accident the ...
    (alt.sports.football.pro.ne-patriots)