Browse Source

Die sortierte Liste wird in die TXT geschrieben

main
fdai7172 2 years ago
parent
commit
ab15ad00c7
  1. 5
      src/Paper-Bin.c

5
src/Paper-Bin.c

@ -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);
}
}
Loading…
Cancel
Save