QFile file("20070920081562.ama");if (!file.open(QIODevice::ReadOnly)) { log->append( tr("Cannot open file %1 for reading: %2 ").arg(file.fileName ()) .arg(file.errorString())); return;}QByteArray a=file.readAll();if(a.at(0)==200){ log->append( tr("код двести найден "));}
QStringList fileжfor(i=0;i<bdate.daysTo(edate)+1;i++) {file<<QString("i1194%1*.ama").arg(bdate.addDays(i).toString("yyyyMMdd")); dir.setNameFilters(file); QFileInfoList list = dir.entryInfoList();