title: how to use FileWriter
body: <p>I wanted save the  text with JTextField, i did it , is working good, I have 3 JTextFile</p>
  
  <ol>
  <li>ID</li>
  <li>Name</li>
  <li>Password</li>
  </ol>
  
  <p>well now I want to load my Name and password by
   putting the ID into field of ID HERE, is all the code, that i have done just kindly   guys tell me how to load it again, thank you so much in advance.</p>
  
  <pre><code>    String id = jTextField1.getText();
      String name = jTextField2.getText();
      String last = jTextField3.getText();
      if (jTextField1.getText().isEmpty() || jTextField2.getText().isEmpty()           || jTextField3.getText().isEmpty()) {
  
      } else {
          try {
              FileWriter writer = new FileWriter("user.txt", true);
              writer.write(System.getProperty("line.separator"));
              writer.write(id);
              writer.write(System.getProperty("line.separator"));
              writer.write(name);
              writer.write(System.getProperty("line.separator"));
              writer.write(last);
              writer.close();
              jTextField1.setText("");
              jTextField2.setText("");
              jTextField3.setText("");
              JOptionPane.showMessageDialog(null, "Saved");
  
          } catch (Exception e) {
              e.printStackTrace();
          }
  
      }
  </code></pre>