Advertisement
Guest User

Wczytywanie z pliku

a guest
Mar 25th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1.  
  2.     if(simulation)
  3.     {
  4.         char buff[BSIZE];
  5.         if( file.atEnd() )
  6.             file.seek(0);     // zacznij jeszcze raz czytać plik (zapętl)
  7. //        QThread::msleep(1);
  8.         file.read(buff, BSIZE);
  9.  
  10.         readdata.append(buff);
  11.         qInfo() << "ReadData size: " << readdata.size() << endl;
  12.  
  13.         if (readdata.size() >= DSIZE ){ // symulator, nie wymaga płytki z EMG
  14.             return true;    // zastosuj transformatę
  15.         }else {
  16.             return false;   // czytaj plik dalej
  17.         }
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement