How to serialize the Tree - strcture data in C

Discussion in 'C Programming' started by sweety, Feb 28, 2006.

  1. sweety

    sweety Guest

    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
    sweety, Feb 28, 2006
    #1
    1. Advertising

  2. sweety

    Ian Collins Guest

    sweety wrote:
    > 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.

    --
    Ian Collins.
    Ian Collins, Feb 28, 2006
    #2
    1. Advertising

  3. sweety

    osmium Guest

    "sweety" wrote:

    > 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.
    osmium, Feb 28, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gordz
    Replies:
    3
    Views:
    3,918
    John Oakes
    Jun 7, 2004
  2. Stub

    B tree, B+ tree and B* tree

    Stub, Nov 12, 2003, in forum: C Programming
    Replies:
    3
    Views:
    10,077
  3. sharan
    Replies:
    4
    Views:
    669
    CBFalconer
    Oct 30, 2007
  4. sharan
    Replies:
    2
    Views:
    814
    SM Ryan
    Oct 31, 2007
  5. Replies:
    1
    Views:
    1,068
    Ian Collins
    Apr 11, 2008
Loading...

Share This Page