for (int i=0; i<GlobalVaribles::all.size(); i++) { for (int j=0; j<GlobalVaribles::all[i].size();j++) out1 << GlobalVaribles::all[i][j]; out1<<endl; }
QFile file2("Text.txt"); file2.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text); QTextStream out2(&file2); for (int i=0; i<GlobalVaribles::QuestionAndAnswer.size(); i++) { for (int j=0; j<GlobalVaribles::QuestionAndAnswer[i].size();j++) out2 << GlobalVaribles::QuestionAndAnswer[i][j]<<endl; } file2.close();
QString QCoreApplication::applicationDirPath () [static]
QString QDir::currentPath () [static]
QString QDir::tempPath () [static]QString QDir::homePath () [static]QString QDir::rootPath () [static]