so i made a basic guessing game and i am trying to save the best scores. it is writing them into the text file fine and when i check the text file it has the correct best score but when the program is asked to display the best score it displays a seemingly random number. Here is my code
for example when i run this program it claims the previous best score is 57 but yet when i go to the text file it says the best score is 4. Please tell me any coding errors i may have made or any other advice as to how to fix this problem. Thanks!