There's no built-in function to do it, but it's easy enough to do
something like this:
(deffunction save-rules (?file)
(open ?file "myfile.txt")
(bind ?it ((engine) listDefrules))
(while (?it hasNext)
(printout ?file (ppdefrule ((?it next) getName)) crlf crlf))
(close ?file))
I think Matthew Hutchinson wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi everyone,
>
> I have read about "bsave", "save-facts" and also "batch" to become familiar
> with persistent storage. One question: is there a simple way to write all
> the current RULES to file? i.e. a sort of "save-rules"
>
> If I've missed the point or this has an obvious answer - my apologies!
>
> Cheers,
> Matt
>
>
>
> --
> Matthew Hutchinson
> Ph.D. Candidate
> Department of Spatial Sciences
> Curtin University of Technology
> GPO Box U1987
> Perth, Western Australia 6845
>
> Visiting Scholar
> Department of Geography and Planning
> University of Akron
> Akron, Ohio USA
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------