How to save multiple high scores in C -


this hangman game. how can save few names , scores?

file *fscore; fscore=fopen("scores.txt","r+"); fprintf(fscore," new score %s = %d\n",player,n); fclose(fscore); 

for example this:

nancy = 13  michal = 50  nina = 10 


Comments

Popular posts from this blog

python - How to clone or copy a list? -

The SDK directory does not exist (ubuntu 16.04) (react native) -

linux - How to use Android ltrace tool to trace an app? -