View Single Post
  #1 (permalink)  
Old 07-04-2007, 07:46 AM
Marcus Marcus is offline
Member
 
Join Date: Jun 2007
Posts: 92
Marcus is on a distinguished road
Help with StringBuffer
Hi, what I'm trying to do is update/append a txt file that contains details of different clients.
I have these clients seperated using delimiters and was thinking that StringBuffer would be the way to go is that correct? or am I way off ?

Code:
File file = new File("customers.txt"); StringBuffer sb = new StringBuffer(); sb.append(jTextField1.getText() + '|'); sb.append(jTextField2.getText() + '|'); sb.append(jTextField3.getText() + '|'); sb.append(jTextField4.getText() + '|'); sb.append(jTextField5.getText() + '|'); sb.append(jTextField6.getText() + '|'); sb.append(jTextArea1.getText() + '|'); String s = sb.toString();
Thanks

Marcus
Reply With Quote
Sponsored Links