I am using the following code to write an object to a file. However it seems that it overwrites an existing object and doesnt append it.
How can i append an object to a file that contains an existing object.
How are you reading the objects? You've used one ObjectOutputStream per written object. These ObjectOutputStreams each write some extra information. That means that you should use one ObjectInputStream per object to read.