Reads the snapshot data from stream, from the string,
or from file indicated by filename. If no optional keyword
object argument is given, a new GDL instance based on the
data in the snapshot file is returned. If an object is given,
the object should be compatible in type to that specified in the
snapshot file, and this existing object will be modified to contain
the set slot values and toplevel inputs as specified in the snapshot
file.
- keyword arguments:
- filename String or pathname, Default Value: "/tmp/snap.gdl"
- File to be read. If either string or stream is specified, this will not be used
- string String of data, Default Value: NIL
- The actual snapshot contents, stored in a string. If stream is specified, this will not be used
- stream Stream open for input, Default Value: NIL
- A stream from which the snapshot data can be read
- keep-bashed-values? Boolean, Default Value: NIL
- Indicates whether to keep the currently bashed values in object before reading snap values into it
- object GDL object, Default Value: NIL
- Existing object to be modified with restored values
|