Home » questions » Help please please ! writing file in java?
Help please please ! writing file in java?
i am writing to a file and want to enter a new line, for example:
FileWriter output = new FileWriter(FILE,true); //where FILE is my file
output.write("\n hello");
output.write("\n java");
output.close();
I want this to be on the file
:hello
:java
instead im getting
:hello[]java
in other words how do i omit writing the "\n" character and actually making a new line
please help thanxs :)

Answers
shin
On 2006-08-01 01:33:41
Venkatraman M
On 2006-08-01 01:37:28
vincentgl
On 2006-08-01 13:29:48