To check whether the file exists or not, you can try opening it for input and see if it's open. If it's
not open, it means it doesn't exist. If it doesn't exist, opening it for output will automatically create it.
Here's some pseudocode:
open file for input (use an ifstream object)
check if the file is open using the is_open member function
if (the file is open) everything is fine
else
{
open the file for output (using an ofstream object)
output a big value to the file (e.g. 10000),
which will be the default high score
}