unceraintity with arrayList storing
<pre><code>public void openFile(){
        try {
            l = new Formatter("try.txt");
            System.out.println("Opened File");
        } catch (Exception e){
            System.out.println("Did not open file");
        }
    }
    public void addRecord(){
        l.format("%s", nameField.getText());
        System.out.println("Added Name" + " " + nameField.getText());
        }
    public void onClose(){
        l.close();
    }

/*

So I am trying to store user data, I have a gui and anytime they click sign up i want to store the namefield in an array list, is it possible that anytime I close and reopen the program and someone else puts in their name it just adds to the array list instead of overriding what the earlier person put in?
Example is in my gui i type in mike as name, I close it and reopen it and put in john as the name, would that add mike and john or would it be just john? and how do I make them co-exist?
Thank you
</code></pre>

<p>It reads it to the file, but everytime I close the program and run it again it replaces whatever is on the first line.</p>