tell and listing

markmuetz <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hi,

I'm trying to load a prolog file (using ['file.pl'].), modify it and then
save the changes (e.g to 'file2.pl'). To do this I'm calling 
?- ['file.pl'].
?- retract(node(node1,_,_)).
?- tell('file2.pl'). 
?- listing.
I was expecting the output of listing to go to the file, but instead it goes
to the terminal. I tried playing around with the open/3 predicate but to no
avail. How do I go about doing this properly (i.e. get listing to go to a
file and not to the terminal)?

Thanks in advance,
Mark
-- 
View this message in context: http://www.nabble.com/tell-and-listing-tf3670927.html#a10257478
Sent from the Gnu - Prolog - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.