Hello everyone,
How can I assert a fact into a file without deleting the previous fact?
In the following 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 will do nothing.
Help me please.
Thank you :)