@ -199,6 +199,11 @@ void sortScoreboard()
FILE* fp = fopen("ScoreBoard.txt", "w");
for (int i = 0; i <= numberOfLines +1; i++)
{
fprintf(fp, "%s %d\n", playerlist[i].Name, playerlist[i].Points);
}
fclose(fp);