2019.11.3
QFile outFile(currentFile);
// add a sprite
QString currentLine = ui->lineEdit_2->text();
currentLine += ",";
currentLine += ui->lineEdit_3->text();
currentLine += ",";
currentLine += ui->lineEdit_4->text();
currentLine += "\n";
if(outFile.open(QIODevice::ReadWrite|QIODevice::Append)){
outFile.write(currentLine.toStdString().c_str());
outFile.close();
}