QT如何读取txt文件中的二进制数据,并解析
void ParseLog::readData(){ QFile file(QDir::currentPath()+"data.txt"); if(!file.open(QIODevice::ReadOnly | QIODevice::Text)) { qDebug()<<"Can't open the file!"<<endl; } while(!file