Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

how to write into a text file in j2me

Thread view: 
rajesh - 17 Feb 2006 11:50 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.