File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic question about file Creation in J2ME

 
kumar mdu
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Happy coding........

Regards
Gopinath
 
kumar mdu
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic