|
|
|
|
FileConnection Api WTK 2.5.2_01 ISSUE
Posted:
Oct 31, 2009 7:17 AM
|
|
|
Hi guys,
I'm having some troubles regarding the file connection api with the WTK 2.5.2_01. I want to store a String so I'm using the FileConnection :
FileConnection fconn=(FileConnection)Connector.open("file:///E:/log.txt", Connector.READ_WRITE);
Now if that's the code I get: java.io.IOException: Root is not accessible
That code always worked with the WTK 2.2,however I tried:
FileConnection fconn=(FileConnection)Connector.open("file:///root1:/log.txt", Connector.READ_WRITE);
Then I do not get any exception but actually in C:\WTK2.5.2_01\j2mewtk_template\appdb\DefaultColorPhone\filesystem\root1 there is no log.txt created,that's really strange. In the past I haven't got that problem with the WTK 2.2 so I suppose there is something with the new wireless toolkit,hope you can help me.
|
|