How to save mutiple IO calls??
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, November 20, 2001 04:23 AM

Hi,
I have three files which have to be read frequently and used further. Is there anyway by which i can save these multiple read operations?Something like having a static object which we use all the times. The files will not change.

Re: How to save mutiple IO calls??

Posted By:   Anonymous  
Posted On:   Thursday, November 22, 2001 12:53 PM

Take a look at the singleton pattern, and you can use a SoftReference class to prevent your static instance from being garbage collected
About | Sitemap | Contact