BufferedWriter is acting strange
I am trying to make a game with a working highscore mechanism and I am using java.io.BufferedWriter to write to a highscore file. I don't have an encryption on the highscore and I am using Slick2D and LWJGL for rendering and user input. The program executes this code: FileWriter fstream = new FileWriter("res/gabjaphou.txt"); BufferedWriter writer = new BufferedWriter(fstream); writer.write(score); // score is an int value writer.close(); // gotta save m'resources! lol I open the text file generated by this and all it reads is a question mark. I don't know why this happens, and I used other