I have an external file highscores.txt, which my game opens. It finds the 3 variables in it and compares them to the score that the user got and determines if they beat it or not. If they beat the high score, I want it to re-write the variables in the file, which are “name”, “seconds”, and “minutes”. Here is how I open the file and get the data.
loadText = new LoadVars();
loadText.load(“highscore.txt”);
loadText.onLoad = function() {
name.text = this.name;
seconds.text = this.seconds;
minutes.text = this.minutes;
highseconds = this.seconds;
highminutes = this.minutes;
};
Can somebody tell me how I can write in the file using flash? Thanks!