File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How to add newline in a textfile using dataouputstream in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to add newline in a textfile using dataouputstream in java" Watch "How to add newline in a textfile using dataouputstream in java" New topic
Author

How to add newline in a textfile using dataouputstream in java

C.R.Ram Kumar
Greenhorn

Joined: Jul 26, 2010
Posts: 1
Hi

Any one can solve my problem

I want to add a new line in my textfile using dataoutputstream.

It is possible ?


Thank You . .

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

Hi C.R.Ram Kumar Welcome to JavaRanch.

DataOutputStream writes binary files. If you want to insert new line then you must have to use Writer.


Life is easy because we write the source code.....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Please use the code button and avoid coloured text. Since you are new, I have edited your post and you can see how much better it looks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to add newline in a textfile using dataouputstream in java
 
Similar Threads
IO doubt
What's Wrong With This Program
io question
buffered reading for RandomAccessFile
I/O BufferedInputStream