TTF High Scores Dilema
Posted: Mon Feb 01, 2010 2:18 am
I'm currently working on a new project that I want to have a list of the top 5 high scores but ifstream objects seem to only be able to convert each line into a string.
However to print it to the screen I need it to be a char * so I don't know what to do.
And another more minor problem is that every time the program starts I want the highscores.txt file to be filled with fake scores but ONLY if it's empty, but I can't think of any way to check that.
Any and all help will be very appreciated.
However to print it to the screen I need it to be a char * so I don't know what to do.
And another more minor problem is that every time the program starts I want the highscores.txt file to be filled with fake scores but ONLY if it's empty, but I can't think of any way to check that.
Any and all help will be very appreciated.