On Tue, Jul 9, 2024 at 5:56 AM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
Am 09.07.2024 um 11:38 schrieb Artur T.:
>
> I would like to store a bundles object (an array of bundles). However,
> I only find the bwrite() function for storing a single bundle, but not
> a bundles object. Am I right that it is currently not possible to
> store a bundles object?
>
I guess so. What you could perhaps try to do is to wrap the bundles
array inside another container bundle and then save that one. It would
be interesting if that can then be reloaded and the inside array
recovered OK.
Why would it not be?
<hansl>
bundles B = array(3)
B[1] = _(str="foo", x=1, m=I(2))
B[2] = _(str="bar", x=2, m=I(3))
B[3] = _(str="bar", x=3, m=I(4))
bwrite(_(B), "container.xml")
B2 = bread("container.xml")
print B2 --tree
</hansl>
Allin