Guys,

Sample I have structure

Qt Code:
  1. struct s_mystruct
  2. {
  3. int noOfCars;
  4. double noOfWives;
  5. bool isActive;
  6. }mystruct;
  7.  
  8. mystruct st;
  9. st.noOfCars = 10;
  10. st.noOfWives = 2.5;
  11. st.isActive = true;
To copy to clipboard, switch view to plain text mode 

I want to write this to a file (text format ) like this
NoOfCars = 1
noOfWives = 2.5
isActive = true
Then, read the txt file and fill my structure again.
Question:
Is there any easy way to do this taking advantage of some "QtClasses" ?

baray98