anyway to check if method readObject of class ObjectInputStream has finished reading file other than catching its thrown exceptions?
and if no. how can I make outNewmast.writeObject(accountRecord); statement reached in this case?
// read oldmast.ser try { while (true) { accountRecord = (AccountRecord) inOldmast.readObject(); //read trans.ser while (true) { transactionRecord = (TransactionRecord) inTrans.readObject(); if (transactionRecord.getAccountNumber() == accountRecord.getAccount()) { accountRecord.combine(transactionRecord); }//end if }//end inner while outNewmast.writeObject(accountRecord); }//end while }//end try catch (ClassNotFoundException e) { System.err.println("Error reading file."); System.exit(1); }//end catch catch (IOException e) { System.err.println("Error reading file."); System.exit(1); }//end catch