@ -111,6 +111,7 @@ void Generatefield() {
void addScoreboard()
{
int ScorePoints;
//Die txt wird geöffnet
FILE* fp = fopen("ScoreBoard.txt", "a+");
char name[255];
@ -118,5 +119,7 @@ void addScoreboard()
printf("Bitte gib deinen Namen ein:\n");
scanf("%s", name);
fprintf(fp, "%s %d\n", name, ScorePoints);
fclose(fp);
}