Commit 59119ad1 authored by Denis Khachko's avatar Denis Khachko

CourseManager - write marks to file

parent 27bcc077
......@@ -598,9 +598,10 @@ QString Plugin::initialize(const QStringList &configurationArguments,
qDebug()<<"LOAD WORK BOOK ERR CODE:"<<loadCourseFromConsole(runtimeArguments.value('w').toString(),runtimeArguments.value('c').toString());
if(runtimeArguments.value('o').isValid())
{
QFile outFile(runtimeArguments.value('o').toString());
outFile.setFileName(runtimeArguments.value('o').toString());
if (outFile.open(QFile::WriteOnly)) {
resultStream.setDevice(&outFile);
qDebug(()<<"Stream status"<<resultStream.status();
}
}
return "";
......
......@@ -101,6 +101,7 @@ private /*fields*/:
void showError(QString err);
QFileInfo cur_courseFileInfo;
QTextStream resultStream;
QFile outFile;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment