ICI Modules: serialisation: restore


Modules by name : by type

Synopsis

any = restore([ file [, struct ]])

Description

Reads and returns an object from the given file or stdin if no file is given. The object is assumed to have be written by the save function or a program using the identical protocol. If the optional struct argument is given it is used as the static scope for any function objects restored from the file. If not given the current static scope is used instead. The ability to pass in a scope is specifically intended for security conscience programs.

If end of file is detected the error "end of file in restore" is raised. This is typically required to be trapped in network programs to detect peer disconnection.