Dear All,
Is there any possibility to write to txt file stored inside the res folder?
Dear All,
Is there any possibility to write to txt file stored inside the res folder?
Hi euglena9,
AFAIK no, it's "read-only" and you just can use its contents. If your device supports JSR-75 (and the FileConnection Opt Pack), then things are different and you can get that...
Hope it helps!
BR,
Juarez Junior
Last edited by juarezjunior; 2006-05-24 at 18:21.
Hi Euglena,
What do u really mean ?
if want to write a text file "into" the res folder in ur jar file . Then as Juarze said u will not be able to do so.
If u mean that u want to write the text file "from" the res folder. Then u can do it by using fileconnection if ur phone supports jsr - 75.
http://www.forum.nokia.com/info/sw.n..._v1_1.zip.html
Wang
If you just want to store some data for the midlet to be used during the next launch of the midlet (persistent data), you can also use record stores (see the package javax.microedition.rms).
As mentioned above, resource files cannot be altered from within the midlet.
Hartti
Thanks everyone. I think i might as well go for RMS. Thanks.