Question about fileconnection class in Java
- by cancelledout
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?