View Single Post
  #1 (permalink)  
Old 05-20-2007, 11:07 PM
johnt johnt is offline
Super Moderator
 
Join Date: Apr 2007
Posts: 30
johnt is on a distinguished road
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!
Reply With Quote
Sponsored Links