473,327 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

with Qt readFromFile() pls help

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 :)
May 12 '10 #1
1 1599
jkmyoung
2,057 Expert 2GB
You can't just fill in the rest of the char[] with spaces? Normally in c, it would output the full length of the array. How are you setting the value of the character array?
May 13 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Marko Maehner | last post by:
Hi, I have a strange problem with my xml file. In the schema of this xml file I have set one column to autoincrement. When I enter the data in my xml file directly, the autoincrement-column gets...
0
by: Dr. Zharkov | last post by:
Hello. I have installed on my computer Visual Studio 2005 Beta and DirectX 9.0 SDK Update - (Summer 2004). I have developed projects Visual C# for construction of 3-Dimensional geometrical bodies,...
3
by: Alur | last post by:
Changing the current directory with the help of dialog window(MFC app) We can change directory with the help of the following code: CFileDialog m_ldFile(TRUE);...
4
vijaydiwakar
by: vijaydiwakar | last post by:
Do any one have the guts to solve my problem? I'm trying to record a call with the help of modem. I'm using TAPI & Mscomm ctrl as second option. If any one knows pls tell with sample code
1
by: pramodrepaka | last post by:
i am using adodb with the help of oracle while printing the datareport prints multiple rows but i want a selected row to be printed in the data report. please help me if any one One more question...
3
by: pramodrepaka | last post by:
I am using adodb with the help of oracle while printing the data report prints multiple rows but I want a selected row to be printed in the data report. Please help me if any one One more question...
1
by: pramodrepaka | last post by:
i am not able to add records with the help of ADODB. what is the problem i am not able to understand please help me. this is the code i written In General Declaration Dim cn As New...
1
by: TapasRanjanRay | last post by:
Hi All I want to select a row with the help of radiobutton click, i have added the radio button in the template of the grid view, i want to change the colour of the selected row by checking...
4
by: lerroy | last post by:
i am a B.C.A. student and I cannot open all header files like "#include <stdio.h>" after compiling it shows me "could not open include stdio.h" or something like that. . .. .i have installed windows...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.