[EMAIL PROTECTED] wrote:

> Using JTextArea:
> How can I write out an entire string without loosing the the hardreturns,
> spaces and tabs.
>
> I have tried to do:
> raf.writeBytes(jta.getText());
> and
> raf.writeChars(jta.getText());
>
> Is there anyway to just write out what I need....then be able to use
> while(next())
>      String line = newRAF.readLine();

To write to the JTextArea, use  jta.append(line);
To get the string from the JTextArea, use jta.getText();
 To write strings to a file, try FileWriter.

-Wendy

Wendy Richardson
[EMAIL PROTECTED]

Reply via email to