Ok.
You have a "if not fileexists('highhscore.dat') then"
You need to add the same (or use else) for "if fileexists".
In that case you just open the file and loop through the file with an "while not EOF" (you learned that earlier) in that other topic and fill in rank until you get to 10.
At FormClose you do the same but for writing.
(The reason you need to do a while loop in the beginning is so you make sure when you have less then 10 records in the file, you don't crash. Writing only 10 records shouldn't be a problem because you don't care about anything other than the first 10. Or do you?)
also the score is all 0 but i just want them to be invisible
Just don't fill the StringGrid if the value is 0 for that rank.
oh and also when click the button the name becomes Form1 instead of the on i typed.
That's because you didn't use the parameter Namee to fill the new score-rank but the variable Name (which is the caption of the form).
Now you also see it is best not to use variable which can be confused with properties of another component (like the form). So Name, Width, Top, Left are all names of your own-variables you need to avoid.