Original Post
k..I made a simple space invaders type game and i decided to put a high score display in the game.. When the game is over it will check the old high score with your score and then overwrite this score with yours if you beat it. I decided to use a simple text file to hold the score and then read in the score and then simply overwrite the file with the new score... however i have not really done anything with reading and writing in such a long time that i can not remember what exactly to do.. I can read in the highscore from the file, however i have to: int highScore = Integer.parseInt(file.readLine()); in order to get the score to not be in the string format that it is read in as.. then i have another method that checks the original highscore with the new score and if it is greater then i have: FileWriter file = new FileWriter(new File("highScores.txt"); file.write(score); file.close; This works as far as writing to the file, but it is converting the integer score into string value( ex. if the score is 65, itll write A) I can not for the life of me remember how to write the integer value to the text file... can someone help me out here. thanks alot!