first save the text in the text area in the string ...
String s = textArea.getText();
then make a file object
File f = new File("c\ret");
then make a writer object
FileWriter fw = new FileWriter(f);
then write into the file
fw.write(s);
This is a raw concept of writing into the file... sequential writing. Post more for any problems in you code.
Reputation Points: 45
Solved Threads: 56
Unauthenticated Liar
Offline 1,767 posts
since Jul 2004