The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Java I/O: writing to a file

Posted by Indra Venkatbabu on October 18, 2000 at 2:16 PM

HI there,

I have a doubt. it might seem silly but i am not able to do this. while i write to a file the output using DataOutputStream, i get the whole output in the same line. i want to print each of them in new lines. i am not able to use
"\n" or println (obviously println would not work) i need something that works like println.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us