Saving and Restoring

I have a PtRaw widget, on which a user can draw images and lines. I want to
be able to save the correct information so that the user can save and
restore these images/lines (like a paint program). Is there an easy
serializing method, like in MFC, or should I be using fopen, fwrite, fread
etc?

Thanks
Sara

Also, if whatever is placed on the canvas by the user is saved in a linked
list of structures that contains such things as PhImage_t* would fwrite
store it properly and would I be able to retrieve it properly as long as I
used the same structure as a template?

Thanks again
Sara
“Sara Mallory” <pushkin@cogeco.ca> wrote in message
news:c40aoa$65u$1@inn.qnx.com

I have a PtRaw widget, on which a user can draw images and lines. I want
to
be able to save the correct information so that the user can save and
restore these images/lines (like a paint program). Is there an easy
serializing method, like in MFC, or should I be using fopen, fwrite, fread
etc?

Thanks
Sara