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 can I handle \n or \t in a text file?

807591Mar 24 2008 — edited Mar 24 2008
Java read text from a file and display them in a text area. I want the program to treat '\n' as a new line. But it seems Java will accept these characters as a normal text.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 21 2008
Added on Mar 24 2008
7 comments
1,316 views