title: Trouble with readObject only returning a single array value
body: <p>I'm taking a course in Java, and the assignment is to write a calendar program that can write and retrieve events from a file.</p>
  
  <p>My problem is that I'm only getting the first value of my written array. returned from the "input.readObject"</p>
  
  <p>Here is my getFile method calling looking to read the file.</p>
  
  <pre><code>static String[] Entry = new String [35];
  
  public static void getFile(Object month, String year) throws IOException
  {
      ObjectInputStream input = new ObjectInputStream(new FileInputStream(month+year+".txt"));
      try
      {
          String[] LoadedEntry = (String[])(input.readObject());
          Entry = (String[]) LoadedEntry;
      }
      catch (IOException e) 
      {
          // TODO Auto-generated catch block
          //e.printStackTrace();
          System.out.println("File not found, creating new file...");
      } 
      catch (ClassNotFoundException e) 
      {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      finally
      {
          input.close();
      }
  }
  </code></pre>
  
  <p>And the method that calls it, and writes the desired code after the getFile method executes.</p>
  
  <pre><code>    public static void saveEvent(String month, int day, String year, String calendarEvent)
  {
      String[] EntryF = new String[35];
      String[] Sample = {"1", "2", "3", "4", "5"};
      try
      {
          getFile(month, year);
          System.out.println("Past getFile");
          EntryF = Entry;
          //EntryF = Sample;
          EntryF[day] = calendarEvent;
  
          ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(month + year+".txt", true));
          output.writeObject(EntryF);
          output.reset();
          output.close();
      } 
      catch (IOException e) 
      {
          e.printStackTrace();
      }
  
  }
  </code></pre>
  
  <p>Been racking my brain for all day, and cannot get this thing to work... Does anyone see where I went wrong?</p>
  
  <p>I can verify that the object is being saved and passed down into the saveEvent method because the written textfile is changing, but it's just not reading in the full contents of the file correctly..</p>
  
  <p>Thanks,</p>
  
  <p>Andy</p>