Nice and easy question.. Im using filehandle to write and read scores.. wins and lossess.. but unlike a buffered reader you cant use read.line(); so how do you write and read lines in filehandler?? thanx here is the code
private void writeSaveData()
{
winstring = Integer.toString(wins);
lossstring = Integer.toString(losses);
FileHandle scores = Gdx.files.local("Score");
scores.writeString(winstring, false);
// I want to add another line here for lossess
}
private void loadScores()
{
FileHandle scores = Gdx.files.local("Score");
winstringread= scores.readString(winstring);
wins = Integer.parseInt(winstringread);
// same here add line to read lossess
}