wood burning stoves*
The moose likes Java Micro Edition and the fly likes How to create a Text File in Nokia 6630 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to create a Text File in Nokia 6630" Watch "How to create a Text File in Nokia 6630" New topic

How to create a Text File in Nokia 6630

rajdvlpr rajDeveloper

Joined: Jul 27, 2005
Posts: 1

I am working on an application in which I want to create a Text file in Nokia phones. I have used the JSR-75(File Connection API) for this purpose.

Now the problem is that my application is running well in the default phones in J2ME Toolkit. I have used the following code for File connection:

String url = "file:///root1/myfile.txt";
FileConnection connection = (FileConnection)Connector.open(url,Connector.READ_WRITE);

But I don't know what is the root i.e. URL for making it work in Nokia phones.

I have used the following as URL also:

String url = "file:///C:/myfile.txt";

String url = "file:///E:/myfile.txt";

But these are not working in Nokia. Could anybody help me in this regard? If anybody has the solution please mail it at

or raj_aggarwal@rediffmail.com

Its very urgent.

Michael Yuan
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
rajdvlpr rajDeveloper,

Please change your display name to conform to our naming policy. (In short, you need to use your real name). Thanks.

As for your problem, are you getting any error messages or the files are just not created? Can you test that in Nokia's emulators?
[ July 27, 2005: Message edited by: Michael Yuan ]

Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
I agree. Here's the link: http://aspose.com/file-tools
subject: How to create a Text File in Nokia 6630
Similar Threads
Download Nokia Toolkit and Emulator
Unable to create/find new file
bluetooth connction blocks file creation
help regarding fileconnection in nokia devices
Application not authorized to access the restricted api