I\'m trying to create a basic highscore system for a project I\'m working on.
The problem I\'m having is, although I write the names into my main they just overwrite
You need to open the file with the append mode:
ofstream newFile("scorefile.txt", std::ios_base::app);
There are various other modes too.