file as temporary data storage
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ajit_roy
Posted On:   Monday, September 19, 2005 07:13 AM

Hi all,

If my application can not establish connection with the server it is storing 8000 records in files.After connection with the server resumes it sends those records to server one by one and simultaneously deletes those records from the file.

So if i use ObjectSerialization then I will not be able to delete a record from the file. Should I go with XML(can I delete a record from a xml?) or is there any other suggestion?

With regards, Ajse.

Re: file as temporary data storage

Posted By:   srini_vasan  
Posted On:   Tuesday, October 4, 2005 11:19 AM

Hi



U don't need to go to XML.



1) Just collect the objects from file . just store them into

ArrayList or Vector .


2) Remove record from ArrayList or Vector using

method remove(index).



thanks,

srini

Re: file as temporary data storage

Posted By:   David_Thornton  
Posted On:   Tuesday, September 20, 2005 02:52 AM

Refer my response to your identical question under the IO topic.
About | Sitemap | Contact