How to serialize the Tree - strcture data in C

S

sweety

Hi,

Want to write the following struecture in to a file insted of writing
each data, how the serialize support for this.

Would be great if sample code or the interface info provided.

Strcture as follows..

typedef nextstruc2{
WCHAR *ff;
int gg;
}

typedef nextstruc1{

WCHAR *dd;
nextstruc2 *ee;
}


typedef struct{

int a;
WCHAR *b;
nextstruc1 *cc;
}

The sooner reply would be great...

Thanks
Sweety
 
I

Ian Collins

sweety said:
Hi,

Want to write the following struecture in to a file insted of writing
each data, how the serialize support for this.
You don't have a choice. There isn't any built in serialisation in C.
 
O

osmium

sweety said:
Want to write the following struecture in to a file insted of writing
each data, how the serialize support for this.

Would be great if sample code or the interface info provided.
<snip>

Look up <persistent tree> on Google. Or repost on comp.programming or
suchlike.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top