Hi every one,
I am doing a project in j2me and in that i need to add and modify my
text file,
which is grouped in the jar.
As i know, by using class.getResourceAsStream(filename) this method we
can read that file.
but i want to write into that textfile.
this iam not getting.
plz any body help me.
Darryl L. Pierce - 17 Feb 2006 15:19 GMT
> I am doing a project in j2me and in that i need to add and modify my
> text file,
> which is grouped in the jar.
No, you cannot modify the contents of the JAR file once it's installed onto
a handset.
> As i know, by using class.getResourceAsStream(filename) this method we
> can read that file.
>
> but i want to write into that textfile.
You can't. You can only write to a record store.

Signature
Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"McVeigh's lawyer got him the death penalty, which, quite frankly,
I could have done." - Jon Stewart
JScoobyCed - 20 Feb 2006 06:51 GMT
> Hi every one,
>
[quoted text clipped - 8 lines]
> this iam not getting.
> plz any body help me.
The only way one can write to the mobile File System in J2ME is to use
(if supported) the JSR-75: FileConnection and PIM API.
Additionaly, you can't modify a text file on the mobile if it is in the
JAR running your application.

Signature
JSC