env:load-state
List of: Scheme Extensions
Subjects: Tolerant Modeling
Contents: Kernel

Action: Loads the states of global variables (such as options and tolerances) from the given text file and sets the values to the variables.

Filename: kern/kern_scm/fileinfo_scm.cxx

APIs: api_load_state

Syntax: (env:load-state filename)

Arg Types: filename string

Returns: boolean

Description: Attempting to load a nonexistent file generates an "access violation" type error message.


filename is a string specifying the name of the file containing the global variables to set.

Example: ; env:load-state

; Load variables and their values from the file.

(env:load-state "log.log")

;; #t
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0113.HTM