How can I state a fact in a file without deleting the previous fact?
In the next line, when I execute it twice, the second fact overwrites the first fact:
tell('animal.txt'),write(Animal),nl,told.
But when I use assert
or assertz
, it won’t do anything.
Help me please.
Thank:)
smile source
share