I'm embarassed since this is my 2nd post today...
Anyways.. I have this text area that holds some lines delimitated by new lines(lines created by pressing enter)
The problem is that when i transfer the text fo a .txt file all the new lines get lost. This results in a pretty big mess...
Any simple abordation for solving this?
BTW: my approach takes the text string as a whole, it doesen't break it down into lines
Thanks:P
I presume you are using a jTextArea? These use the '\n' character for new lines, but this may or may not be the correct line separator for text files on whatever OS you are using. You can change new lines to use the line.separator system property, which will give the correct value for your system.
Bookmarks