Problem using readObject()
I am a student doing my final project, I need help urgently. Can anyone please advise me?
I am not sure how I can apply write and read for a collection. I have written it out to a File through an ObjectOutputStream objectOut with objectOut.writeObject(arraylist[i]). That seems to work and the file is there. When I attempt to read it back with arraylist = in.readObject(),I can't get anything. Actually I need to save all my objects into a file then retrieve it back later by doing so.
I am not sure am I doing the correct way? or anyone please advise me for a better way?
Thanks for any guidance here.
in order to help you: are you sure, you managed to write out all the file contents and if so how did you do it exactly?
Concerning: [your problem and my reply]
since I am not going to check this post any further, you can contact me via the e-mail address: |email@example.com|
Thank you !~
serialobj...thanks. I have done with using XMLDecoder and XMLEncoder in order to save and open my objects from file. Thanks.~~
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL