Hi All,
I am trying to write a simple program which involves serializing objects.
how do I serialize a custom class objects to a single file, I do not want to use a arraylist or a collection , what I am trying to do is create an object when ever user wants and serialize it to a file, All the objects created in this way should be stored in the same file and the user should be able to view all his objects on demand.
I am struck at deserialization , how do i know how many objects are stored in the file. how should I construct the iterating loop?
Thanks in Advance,
Srini.
I am trying to write a simple program which involves serializing objects.
how do I serialize a custom class objects to a single file, I do not want to use a arraylist or a collection , what I am trying to do is create an object when ever user wants and serialize it to a file, All the objects created in this way should be stored in the same file and the user should be able to view all his objects on demand.
I am struck at deserialization , how do i know how many objects are stored in the file. how should I construct the iterating loop?
Thanks in Advance,
Srini.
Comment