Best way to save/load a structure to file?

Hey guys and gals,

I have a structure that I’ve created, and I need to save and load instances of that structure to files. At first I thought binarystreams would be the best way to go, but now I see with a binarystream I’m not able to read the entire structure from a file, binarystreams only have methods to read xojo-inherent data-types.

Is there a better approach to reading/writing these files to disk? In VB I was able to do it all in one pass.

Thanks in advance!

There was a conversation only a few weeks ago about this same question:

Ah, this is great, thank you. Not sure why that didn’t come up in my forum search.

See the thread again, I added some good information to it. I didn’t notice this before.