I have successfully created a quiz program that first askes the user to input their name.
After the quiz is over, the score is first printed to screen and then would be printed into a username.txt file.
Meaning, the actual users name like John.txt or Amy.txt or bob.txt.
Right now, I have predefined
report_file = fopen ("username.txt","w");
This works 100% yet naturally I have failed to properly identify the files each time the quiz is run for different people and recorded into the file.
I've seen suggestions for sprintf, snprintf, ofstream, istream, and the like.
All are new concepts to me and have no clue how to move forward...any help would be greatly appreciated.
If anyone wants or cares to see my program it is quiet nice and I'd be happy to share but do not intend to burden anyone to read my entire program during this ask for help. :)