| 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
|
|
|