Skip to content

Serialization and Deserialization #116

Answered by epsi1on
Torabi asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,
No code example yet, but simply call Model.Save() and Model.Load() methods to load save from streams, should look like something like this .net pseodo code:

//for saving
using(var fl = System.IO.File.OpenWrite(@"c:\temp.bin"))
    myModel.Save(fl);

//for loading
using(var fl = System.IO.File.OpenRead(@"c:\temp.bin"))
    myModel =  Model.Load(fl);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Torabi
Comment options

@epsi1on
Comment options

Answer selected by epsi1on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants