Skip to Main Content

Java Programming

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!

How to insert new line character in string

807591Aug 4 2005 — edited Jun 5 2008
Hello,

I am having some problem. Java program creates string with new lines in it and save this in txt file. While reading the txt file in notepade I am not able to break the string in new lines ( I tried \n ).

Any ideas ?

Thanks in advance

Ritu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2008
Added on Aug 4 2005
16 comments
2,417 views