This function loads instances from a file into the CLIPS environment. It can read files created with save-instances or any ASCII text file. Each instance should be in the format described in section 13.11.4.3. Calling load-instances is exactly equivalent to a series of make-instance calls (in CLIPS version 5.1, slot access restrictions, such as readonly, were suspended during calls to load-instances). This function returns the number of instances loaded or 1 if it could not access the instance file.
Syntax
(load-instances <file-name>)
The function restore-instances loads instances from a file into the CLIPS environment. It can read files created with save-instances or any ASCII text file. Each instance should be in the format described in section 13.11.4.3. It is similar in operation to load-instances, however, unlike loadnstances, restore-instances does not use message-passing for deletions, initialization, or slot-overrides. Thus in order to preserve object encapsulation, it is recommended that restore-instances only be used with files generated by save-instances. This function returns the number of instances loaded or -1 if it could not access the instance file.
Syntax
(restore-instances <file-name>)