I want to read multiple files. I get en error in QFile because it reads only one file at once.
- How can I solve this problem?
- And how can I iterate my files and use them.
QStringList fileNames;
fileNames = QFileDialog::getOpenFileNames(this,
tr("choose"),
"up.sakla",
tr("choosen(*.up)"));
if (fileNames.isEmpty())
return;
QFile file(fileNames);
file.open(QIODevice::ReadOnly);
QDataStream in ( & file);
QString str;
qint32 a; in >> str >> a;
