Hey so I have a program in which I enter in a name of a student and insert all the percentages for each class. After that I transfer it into a text document, but here's the problem. After entering in the info, I want to keep the info in there instead of it being overwritten when I enter in new info. Is there a way to do that?
I believe you mean fstream.open(name, ios::app) but thanks it helped!
Now I have one more problem it seems when I enter in data. Once I add in the data and answer yes to keep going, the grades stay the same as the first entry. For example, I enter in the name John Doe and enter in the grades for each class percentage wise. Say I put 67,98,90,85 for John. Then after that I answer yes to keep going and enter in a separate student with their own grades. The name here is Jane Doe with grades that are 75,78,86,67. I look at the info written in the text file to see that the names changed as they should, but not the array of grades. They stay the same as the first entry.
Name:John Doe
Math:67
English:98
History:90
Science:85
Name:Jane Doe
Math:67
English:98
History:90
Science:85