Dependencies: mbed
Diff: Game/Game.cpp
- Revision:
- 23:ad9ac069e751
- Parent:
- 22:76bb0f52be8b
- Child:
- 24:c110f92fe266
diff -r 76bb0f52be8b -r ad9ac069e751 Game/Game.cpp --- a/Game/Game.cpp Mon May 25 13:08:00 2020 +0000 +++ b/Game/Game.cpp Mon May 25 13:12:31 2020 +0000 @@ -173,7 +173,7 @@ if (fp == NULL) { // if it can't open the file then print error message printf("Error! Unable to open file!\n"); } else { // opened file so can write - printf("Writing to file...."); + printf("Writing to file highscore: %d", _highscore); fprintf(fp, "%d",_highscore); // ensure data type matches printf("Done.\n"); fclose(fp); // ensure you close the file after writing