#program to initialise a file which will hold highest score in a game scoreFile = open("highscorefile.dat","w") highScore = str(0) scoreFile.write(highScore) scoreFile.close() #open file for reading scoreFile = open("highscorefile.dat","r") print(scoreFile.read()) scoreFile.close()