Writing a file for passing just a few bytes is probably a bit too much.
You could simply use SharedPreferences instead. (see here).
Or in case you only want to pass the score to the next activity, you could just use:
/* pass extra data to next activity */
intent.putExtra("score", yourScore);
/* get passed data */
getIntent().getIntExtra("score", -1); // -1 will be returned if no score was passed