benyam_dessu -2 Junior Poster in Training

I need help on java's objectstream object

in my program i have created

[FileOutputStream o;
ObjectOutputStream obj;
FileInputStream f;
ObjectInputStream in;]


and i have
player object it has name and score properties
i have written the object in a file appending at the time of creation
but when i want to read the file it only reads the first object only
i want to read the entire file.
do object
ObjectInputStream
has a similar end of file method and similar movenext method.

Regards Ben

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.