08-05-2008, 03:51 PM
Join Date: Aug 2008
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | IO Caching
Please Login to Remove!
I'm working on a blackberry app that reads and writes data from the SDCard unfortunately i can't go into details on it.
My question is, Is there was a way to tell the o.s not to cache the data.
Ie when i do a write i want it written to the sd card immediately, when i do a read i want the data to be read back from the card not from the cache. I understand there will be a performance hit but it's acceptable.
I've done the following:
FileConnection x=(FileConnection)Connector.open("myfile",Connecto r.READ_WRITE);
I've tried Flushing the stream, closing FileConnection,the InputsStream and OutputStream b/w io calls however the data is still cached.
Any ideas would be greatly appreciated.