Hi,
I am having trouble writting from a JTextArea to a flat text file (locally)
I have tried using string tokenizer to tokenize the string first but with no luck,
Im stuck on the one :(
im a newbie so please take this into acount.
my snippet is below
//Post New Item from TextArea - To Vector, - then to Text File.
void postNewItem () {
try {
String Contents = singleTextArea.getText();
BufferedWriter output = new BufferedWriter( new FileWriter(urlTx) );
testVec.addElement(Contents);
Enumeration eNum = testVec.elements();
while (eNum.hasMoreElements()){
String pointer = (String)eNum.nextElement();
System.out.println("writen to file "+ pointer);
output.write(pointer);
output.close();
}//end while