I'm maknig a game and would like to include a high-score feature ... i know i can load variables from a text file, but can i send them back ?

i figure that at the end, right as the game ended, i'd have the game load the latest version of the .txt document and if the score was higher, send the user's current ones back to override the old ones. anyone know how i'd do thiS?