Hi every one.
I would appreciate it if some one can point me in the right direction. The problem i am having is, I have a line that i read from a file with doubles and ints in the line example
I want to put these numbers in ints and doubles. What i tried to do was.
int one, two, three;
double oned, twod threed;
ssFile.setDevice(&file);
QString stringFile
= ssFile.
readLine();
line.setString(&stringFile);
line >> one >> two >> three >> oned >> twod >>threed;
int one, two, three;
double oned, twod threed;
QTextStream ssFile, line;
ssFile.setDevice(&file);
QString stringFile = ssFile.readLine();
line.setString(&stringFile);
line >> one >> two >> three >> oned >> twod >>threed;
To copy to clipboard, switch view to plain text mode
Needles to say it did not work. is there an easy way in doing this.
Thanks in advance
Chris
Bookmarks