title: Saving a Struct in a database file in C
body: <p>I would like to save a struct into a db file (or .txt that doesn matter still!) but I ve got the following problem. I ve wanted to create structs inside structs like the following code.</p>
  
  <pre><code>typedef struct classes cl;
  typedef struct attribute a;
  
  struct classes{  \\where "a" is a type of struct
      a hunter;
      a channeler;
      a warrior;
      a rogue; };
  
  
  struct human{     \\where "cl" is type of struct classes (
  cl Borderlands;
  cl Shienear;
  cl Arafel;
  cl Illian;
  cl Tear;
  cl Tarabon;
  cl Andor;
  cl TwoRivers;
  cl Amandor;
  cl Mayene;
  cl Murandy;
  };
  </code></pre>
  
  <p>The question is if i have a variable
      struct human data
  do i have to save all the branches of the tree(as i think that it is a tree that i have created), or by just saving the root, do I save the whole struct?</p>
  
  <p>P.S. please excuse my way of writting, i am not that experienced in programming</p>