Question about fileconnection class in Java
Posted
by cancelledout
on Stack Overflow
See other posts from Stack Overflow
or by cancelledout
Published on 2010-06-17T02:37:21Z
Indexed on
2010/06/17
2:42 UTC
Read the original article
Hit count: 272
javame
I have a JavaME application called ParseExample. I can't seem to access the files inside the project's folders using the code below.
FileConnection fconn = (FileConnection) Connector.open("{__DIR__}service1.xml", Connector.READ_WRITE);
Here is the structure: ParseExample -Source Packages -XMLCreatorExample.java -service1.xml ---> I want to read and write to this file
Sorry for the noob question. Am I using this wrong? What path should be used? Or is there any other class that is supposed to be used instead of this?
© Stack Overflow or respective owner