I apologize if I am duplicating an existing topic - I could not find anything similar to what I am trying to do here.
Basically, this is my java final project, and I am having an issue with reading from binary file. I wrote a calendar interface, where a user selects a date that is then passed to an object Ek along with two other Strings. Ek is then written to the binary file "data.dat" (appended to the end of file). A user can then either add more records (Ek) or read records from file. Reading a single object back is fine, but with several objects it only reads the first one and then throws IOException.
I am not sure what I am doing incorrectly.
Could anyone help me with this, please?
Here is the code (run MainMenu) - sorry, it's a huge mess right now: