[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tell and listing
From: |
Yury Luneff |
Subject: |
Re: tell and listing |
Date: |
Tue, 01 May 2007 14:44:47 +0400 |
В Пнд, 30/04/2007 в 10:32 -0700, markmuetz пишет:
> 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
AFAIK you should write everything you want to be a program as a single
line, w/o pressing enter after each statement. In addition it is
recommended to say 'told' after you've written the file.
--
Лунёв Юрий
ТТИ ЮФУ, 2007
- Re: tell and listing,
Yury Luneff <=