Guys,
Sample I have structure
struct s_mystruct
{
int noOfCars;
double noOfWives;
bool isActive;
}mystruct;
mystruct st;
st.noOfCars = 10;
st.noOfWives = 2.5;
st.isActive = true;
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
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
Bookmarks