title: QT File writing with arrays
body: <p>Im trying to read from csv file into another file. There aren't any errors, I just don't understand why it is not writing into the file. Any help is appreciated. Im very new to QT. </p>
  
  <pre><code>QString arr[581][6];
  while (!file.atEnd()) {
      QByteArray line = file.readLine();
  
      for (int i=0; i&lt;581; i++){
          for(int j=0; j&lt;6; j++){
  
              arr[i][j]=line;
  
          }
      }
  }
  
  QString Hfilename="c:\Data.txt";
  QFile fileH( Hfilename );
  if ( fileH.open(QIODevice::ReadWrite) )
  {
      QTextStream stream( &amp;fileH );
  
      for (int i=0; i&lt;581; i++){
          for(int j=0; j&lt;6; j++){
  
              stream&lt;&lt;arr[i][j]&lt;&lt;endl;
  
          }
      }
  
  }
  </code></pre>