Hello!
I need to read values from text file.
Textfile looks like this:
Qt Code:
  1. a1 b20 c200 d125
  2. a2 b20 c200 d125
  3. a3 b20 c200 d125
  4. a4 b20 c200 d125
  5. ...
  6. a100 b20 c200 d125
To copy to clipboard, switch view to plain text mode 

And the code which I'm using:

Qt Code:
  1. (..load file to textstream in..)
  2. int i=0;
  3. do{
  4. in>>line1>>line2>>line3>>line4;
  5. ! ! row1[i]=line1.remove(0,1).toInt(); !!
  6. ! ! row2[i]=line2.remove(0,1).toInt(); !!
  7. ! ! row3[i]=line3.remove(0,1).toInt(); !!
  8. ! ! row4[i]=line4.remove(0,1).toInt(); !!
  9.  
  10. i=i+1;
  11.  
  12. }while(!(line1.contains("STOP")));
To copy to clipboard, switch view to plain text mode 

It worked fine until I tried to save numbers to array. It prints number to screen but saving them to array dont work. Any ideas?

Jeo