aspose 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 32654
    
    4
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to add newline in a textfile using dataouputstream in java
 
Similar Threads
buffered reading for RandomAccessFile
What's Wrong With This Program
io question
IO doubt
I/O BufferedInputStream