View Single Post
  #1 (permalink)  
Old 12-06-2007, 02:39 AM
deeadeed deeadeed is offline
Member
 
Join Date: Dec 2007
Posts: 5
deeadeed is on a distinguished road
how would i get this to work...?
private void requestJButtonActionPerformed (ActionEvent event)
{

Writer fw = null;

try
{
fw = new FileWriter( "customer.txt" );
fw.write( phoneJTextField + "," + postcodeJTextField );
}
catch ( IOException e ) {
System.err.println( "Cannot write to file" );
}
finally {
if ( fw != null )
try { fw.close(); } catch ( IOException e ) { }
}


}
Reply With Quote
Sponsored Links