Next: Manipulating Agents
Up: Predefined Functions and Variables
Previous: Manipulating Variable Argument Lists
You can store Glish values to a file and read them from a file
using write_value() and read_value():
- write_value(value, file)
-
writes a representation of the given
value to the file file, which is interpreted as a string.
Presently only values of type numeric, string, or
record are supported, and those of type function and agent
are not supported. Values of type reference are first dereferenced
before being written.
write_value() returns T if successful and F if not.
- read_value(file)
-
reads a Glish value from the file file (interpreted
as a string) and returns it, or F if it encountered problems.
Note that when stored in files Glish values correspond to SOS
datasets (See Chapter 14, page
, for a discussion of SOS).
Thu Nov 13 16:44:05 EST 1997