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.
_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog