i can't have newline in my text file with this code, what it's wrong with that?
try{
oprint=new FileWriter("HighScores.txt",true);
} catch (IOException e1) {
System.out.println("error");
}
try{
String stampa= "Player: "+name+" --- time "+ this.getDurata()+" s \n";
oprint.write(stampa);
oprint.close();
}catch(Exception e){
System.out.println("error");
}
\r\n).%ninstead of\n.