Hi,
I'm trying to write some integers in a text file using the following code:
out = new FileWriter("data.txt");
out.write(""+health);
out.write(""+punkte);
out.write(""+refx);
out.write(""+getRotation());
out.write(""+speed);
The problem is that this code writes them in a single line and when I try to read them it shows me one single number istead of five. I would be thankful if anyone could tell me how to write the integers each in a separate line.
The code I use for reading is the following:
while((line = reader.readLine()) != null)
{
value = Integer.parseInt(line);
}

