K
Kaidi
Hi,
I am thinking of using this code to output and readin the data:
------------
File thefile = new File(outfile);
FileOutputStream fout = new FileOutputStream(thefile);
ObjectOutputStream oos = new ObjectOutputStream(fout);
oos.writeObject(vectorDB);
oos.close();
fout.close();
----------
the "vectorDB" is a ArrayList, with each element (item) of it another ArrayList.
Anyone can confirm that usign the above code, will it be properly saved to
file? (in another word, does writeObject can handle nested objects?)
Thanks a lot.
I am thinking of using this code to output and readin the data:
------------
File thefile = new File(outfile);
FileOutputStream fout = new FileOutputStream(thefile);
ObjectOutputStream oos = new ObjectOutputStream(fout);
oos.writeObject(vectorDB);
oos.close();
fout.close();
----------
the "vectorDB" is a ArrayList, with each element (item) of it another ArrayList.
Anyone can confirm that usign the above code, will it be properly saved to
file? (in another word, does writeObject can handle nested objects?)
Thanks a lot.