Hi, I'm reading a serializable text file into an ArrayList by the following code:
Code:
			if (e.getSource() == readBtn){
			ObjectInput input = null;
			try
			{
			
			
            InputStream file = new FileInputStream( "Books1.ser" );
      		InputStream buffer = new BufferedInputStream( file );
     		input = new ObjectInputStream ( buffer );

			}
		catch(Exception error)
		{
			System.err.println("Error inputting the file");
		}
		try
		{
		
				
				ArrayList recoveredQuarks = (ArrayList)input.readObject();
				Iterator quarksItr = recoveredQuarks.iterator();
      			while ( quarksItr.hasNext() ) {
        			System.out.println( (String)quarksItr.next() );
				}
				input.close();

			}
		catch(Exception error)
		{
			System.err.println("Error reading from file");
		}
		}
}
It is printing out the first set in the text file, but doesn't print the next set.
Any help with this please?
THanks.