Best way to save/load an object to file?

Saaa empty at needmail.com
Sun Jun 22 16:38:57 PDT 2008


Looks interesting, thanks.
I need to check the code a bit more, but the creating-JSON-archive-part 
really strikes my fancy :)
Phobos only wouldn't be a problem for me.
And as I read it, the boost license lets me use the code in compiled form 
without having to put the license in text form. Another plus!

>
> You may try doost serializer:
> http://dsource.org/projects/doost/
>
> You can serialize to file (generally: different kinds of storages) or to 
> string. There are 2 kinds of archives: simple text archive and JSON 
> archive.
>
> See below for use cases:
> http://dsource.org/projects/doost/browser/trunk/examples/util/serializer/FunctionTest.d
> http://dsource.org/projects/doost/browser/trunk/examples/util/serializer/FunctionTest1.d
>
> Simplest use case for storing in file you can find in FunctionTest1.d - 
> 3rd unit test from top.
>
> Currently Phobos only, but should be rather easy to adapt for Tango.
>
> BR
> Marcin Kuszczak
> (aarti_pl)
> 




More information about the Digitalmars-d-learn mailing list