i'm currently working on a program that requires a number to be saved outside of the program in some manner and recalled later. Sounds confusing but perhaps this will help. The program i'm making is a game, and i want to be able to create something similar to a best players board, that ranks the players time and name. So starting off i set the fastest time to 10000 seconds, if you beat that time it prompts you to enter your name and on the game over screen it shows the fastest time, this works ideally when you play the game continuously. HOWEVER, when the game is closed then reopened to play again it resets the fastest time to 10000 seconds again, (as it should) i was just wondering how i might be able to save the name and fastest time of the player so that no matter how many times the programs is closed and reopened the player who set the fastest time is always remembered. Is it even possible?
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.