I have other part of program reading from textField which works fine. My problem is i cannot get the textArea to do the same thing:
ind = TextArea
private void saveActionPerformed(java.awt.event.ActionEvent evt) { ind.setText(""); String text = ind.getText(); File file = new File("C:Inventory2.dat"); try { FileOutputStream out = new FileOutputStream(file, true); String textsub = (text); out.write(textsub.getBytes()); out.close(); } catch (FileNotFoundException ex) { } catch (IOException ioe) { } }
Am i missing somthing?