highscoreFile = "highscore.txt"

function saveHighscore()
       file = io.open(highscoreFile, "w")	
       if file then 
               file:write(high)		
               file:close() 
       end 
end

function loadHighscore()	
        file = io.open(highscoreFile, "r")	
        if file then 
                high = file:read("*n")	
                file:close() 
        end 
end