Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add newline in a textfile using dataouputstream in java

 
C.R.Ram Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48954
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic