fread_serialized_item — Read a serialized item from a file.
fread_serialized_item reads a serialized item, that was
fwrite_serialized_item from the current input
file with the file handle
fwrite_serialized_item for an introduction of the basics
of serialization). For this, a serialized item is created and
the values read from file are stored in the serialized item. The
operator returns the handle of the serialized item in the parameter
SerializedItemHandle. The file can be opened by the
open_file. Note that the file must be open in
binary format. For reading more than on item from one file the
fread_serialized_item must be called several
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
Handle of the serialized item.
If the parameters are valid, the operator
fread_serialized_item returns the value TRUE. If
necessary, an exception is raised.
The error code 9581 indicates that the end of file is reached before
a serialized item could be read.