I'm writing a program in Qt C++ to create a sort of database. However, whenever I hit the push button it overwrites the entire file instead of continuing to a new line like I need it to do. I would really appreciate any info on how to fix this.
Relevant Code Portion:
QFile file("C:/Users/brandan/Desktop/GUIPrograms/Kumon.txt");
file.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream stream(&file); //stream of information
stream << " " << endl;
stream << name << " " << month << " " << day << " " << year << " " << page << endl;
file.close();