|
New line or Carriage Return through FileWriter
Hello,
I am using a java.io.FileWriter object to write some stuff to a given File object at runtime.
Everything works except I can't figure how to create new lines in the resulting file. All I am wirting in it appears stuck together, even if my String contain \n or \r characters.
I use java.io.FileWriter.write(String s) method.
Thanks for any help!
|