DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2004
    Posts
    3

    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.
    ::Joseph::

  2. #2
    Join Date
    Jan 2004
    Posts
    2
    Hi,
    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?

  3. #3
    Join Date
    Jan 2004
    Posts
    2

    Concerning: [your problem and my reply]

    Hello again,
    since I am not going to check this post any further, you can contact me via the e-mail address: |serialobj@yahoo.com|
    .::.

  4. #4
    Join Date
    Jan 2004
    Posts
    3

    Thank you !~

    serialobj...thanks. I have done with using XMLDecoder and XMLEncoder in order to save and open my objects from file. Thanks.~~
    ::Joseph::

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links