The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Persistence in Java

Posted by Mazhar on October 23, 2000 at 3:08 AM

Hi all
How do I go about populating a 2-dimensional string array from the
contents of a file. I have stored the Strings in a file using ObjectOutputStream,and
shall be reading them through ObjectInputStream.
But the problem is I need to store the contents into the array present in a BEAN.
So I shall just specify the Text/String file and the Bean's Persistence mechanism should ensure
That the String array is properly filled up , all this needs to happen before run time.

I tried using

public void setStringArray()
//open the file and readobject into the string.
but does not seem to work..
please help


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us