Question about a recent thread: reading from a JTextComponent
In a recent thread where i've partecipated too..
the original poster wanted to write in a file the content of a jtextarea.. when i said that you can use the write() method of JTextComponent, or if you prefer use getText() and manually write the string into the file,...
"Doing the work your self means you won't have the proper "newline" string added to your file depending on the OS you are using. "
That's absolutely correct!... but.. if i need to process/modify/doSomething to the string in the jTextArea BEFORE to write the string in a file... i can't use
So in that situation what should i do? ..in order to avoid the problem that camickr said?