Hello folks,
I need to wrote a inti a file for my Highscore calss in Qt creator language which is basic c++.
For exampl i need to create txt file score like this:
Kebabas 0 0
Kebabas2 0 0
Kebabas3 0 0
Kebabas4 0 0
Kebabas5 0 0
Kebabas5 0 0
Kebabas6 0 0
Kebabas7 0 0
Kebabas8 0 0
Kebabas9 0 0
for name is char[20], for score is int and for time is int.
so i have QList<struct Scores> score {char[20] name, int number, int time}
i need to put information from this list to file, but i need to output it with all those spaces because ma name is char and its has 20 space symbol so that then i read this file i can get all my parameters to my list write . Pls help
p.s don't find Qt category so i wrote here :) thx for the answers :)