0

Im using pyCLIPS and was curious if there was a way to output the entire contents of the fact-base into a new file for archiving results, analyzing past results with current ones, etc?

thanks in advance

Amittai Shapira
  • 3,749
  • 1
  • 30
  • 54
Icey370
  • 15
  • 4

1 Answers1

0
>>> import clips
>>> clips.Assert("(color red)")
<Fact 'f-0': fact object at 0x10b29b3c0>
>>> clips.Assert("(color blue)")
<Fact 'f-1': fact object at 0x10af3eab0>
>>> clips.Assert("(color green)")
<Fact 'f-2': fact object at 0x10b29b420>
>>> clips.Eval("(save-facts facts.fct)")
<Symbol 'TRUE'>
>>>
Gary Riley
  • 10,130
  • 2
  • 19
  • 34