954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

java object file reading

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

benyam_dessu
Junior Poster in Training
54 posts since Oct 2005
Reputation Points: 8
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You