QDataStream in(&file);
int n; in >> n ; file.close(); qDebug() << n<<"en" <<endl;
输出:1112355545 en
QByteArray s; in >> s; file.close(); qDebug() <<s<<"en"<<endl;
输出:"" en
QDataStream in(&file);
int n; in >> n ; file.close(); qDebug() << n<<"en" <<endl;
输出:1112355545 en
QByteArray s; in >> s; file.close(); qDebug() <<s<<"en"<<endl;
输出:"" en