Guys,
Sample I have structure
Qt Code:
struct s_mystruct { int noOfCars; double noOfWives; bool isActive; }mystruct; mystruct st; st.noOfCars = 10; st.noOfWives = 2.5; 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
Then, read the txt file and fill my structure again.NoOfCars = 1
noOfWives = 2.5
isActive = true
Question:
Is there any easy way to do this taking advantage of some "QtClasses" ?
baray98
Bookmarks