New line (\n)

Former Member
Former Member
I'm trying to debug a connect IQ app.

I need to output the values from the sensor, this works, however I need a new line after each set of values is written to the txt file.

The code I have is:

System.println(xAccel + ",");
System.println(yAccel + "\n");


However I do not get a new line?

Is there another way of writing variables to a file?

Thanks.