Let me to give you an example...
string highscore;
float score;
Void Main() {
if (iInitializing()) {
int Score = iFileReadOpen(".\\example.txt");
// You can write every extension you want
iFileStringRead(Score,highscore);
iFileClose(Score);
score = iStringVal(highscore);
}
//Place everything here like score = IN_X ...
if (iDeinitializing()) {
iStringStr(highscore,score,"%0.0f");
int Score = iFileValueWrite(".\\example.txt");
iFileStringWrite(Score,highscore,true);
iFileClose(Score);
}
}
If your highscore is not a value like upper float "score" better remove the functions iStringVal() and iStringStr().
Script can have errors because i've been writing it on android. Please reply for errors.