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
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: 39380
    
  28
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add newline in a textfile using dataouputstream in java