wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Basic question about file Creation in J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Basic question about file Creation in J2ME" Watch "Basic question about file Creation in J2ME" New topic
Author

Basic question about file Creation in J2ME

kumar mdu
Ranch Hand

Joined: Jan 04, 2011
Posts: 59
Friends,

I am new to writing and reading a file. I did sample sample by using this link http://wiki.forum.nokia.com/index.php/How_to_write_data_to_a_file_in_Java_ME.

In real devices, file stored in Gallery's Images folder.

Now, I trying in emulator, and did the path like "file://C:/pro.txt". where i can find the file in system? I checked here C:\WTK2.5.2_01\j2mewtk_template\appdb\DefaultColorPhone\filesystem\root1. but there is no file created.


How can i store in emulator and where i can find the path of the text file?

regards,
kumar

Gopinath Karyadath
Ranch Hand

Joined: Oct 14, 2009
Posts: 87



Happy coding........

Regards
Gopinath
kumar mdu
Ranch Hand

Joined: Jan 04, 2011
Posts: 59
Thanks gopi,

I'm trying in emulator, that is sun wtk!!. i set the file path like 'file:///root1/myfile.txt',

i am not able to save the file. I'm not able to see the file in my system not in mobile(as i checking in emulator).

what is the file path to do for emulator..?'

Help me to solve this.?

kumar
kumar mdu
Ranch Hand

Joined: Jan 04, 2011
Posts: 59
hi,

this is my code for creating a file and write data



I'm using Sun WTK, the file path as "file:///C:/Documents and Settings/kumar/myTxt.txt". The program executes but i am not able to find the file?


What i made wrong.?
kumar mdu
Ranch Hand

Joined: Jan 04, 2011
Posts: 59
Hi , I tried this also, like "file:///root1/photos/login.txt" and "file:///C:/login.txt" but its not working

How can i set the path for checking in sun wtk emulator..?

please help me,


kumar
 
 
subject: Basic question about file Creation in J2ME
 
Similar Threads
how to get the window default installation path
Java Package
free SMSc emulator or SMSc
Mobile Emulator in Netbeans
I am not able to retrive the data from RecordStore of rms file