Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to open files in j2me

 
neelima srinivas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried using "Connector.open("file:/samp.txt");" for opening a file in my local drive.
I am getting an error saying "Could not open url". Can someone help me out.
Thanks in advance,
Neelima
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this thread to J2ME forum.
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
 
Ronakkumar Patel
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guys did u find out or not
how to open text file in J2ME

if yes plz reply me on patelronakp@yahoo.com
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a File Api JSR. I forget what the number is. And only a rare few devices out there that implement it, if the JS is completed.

You could use an HTTPConnection to a Web Server/Servlet and have it return the text data.

Mark
 
Maddi Ranjan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use (FileConnection)Connector.open(file://test.txt,Connector.READ);
u will get success
[ June 30, 2005: Message edited by: Maddi Ranjan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic