Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to use carriage return in writing a file in java

843789Apr 26 2009 — edited Apr 26 2009
Hi all,

I have to write a file in a java program. I am using DataOutputStream() method for that. Its all fine. I need to know how could I add a carriage return in my file.
like say I need to write...

Hello Java
World

I hope same solution will work for tabulator too.....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2009
Added on Apr 26 2009
10 comments
7,088 views