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?
Jump to Post
Use a disk file. It could be written to and read from as needed.
All 2 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.