01-19-2015 03:22 PM
Hello,
I have made i little game in CVI, in the end of the game user get a score base on the levels he passed and the level of difficulty.
As this is a school assignment i have to have a score board. I've made score board using a table and i read arguments from a txt file.
All I read is the name of the player and his score.
The trouble that I'm having is to check the txt file and see if the new score of the user can be put in the score board.
I need to known how I check if user's new score need to be put into the score txt file, and how to put it there.
Thanks in advacne!
01-20-2015 01:06 AM - edited 01-20-2015 01:07 AM
Hello Slavik87!
If I understand your question correctly, want to are asking is how to read the text file, retrieve the highest scores from it and update the file again.
If you are asking about which functions to use, these are some functions you can use to perform the file operations:
Here are some suggestions about how you can manage the information in your text file:
Best regards!
- Johannes