| 
 
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.
 
Message:
 
 
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
 
 
 
  
Replies:
 
 |