This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I'm facing some problems accessing files(text files) packaged along with midlet programs .
I have an application which consists of a midlet and a configuration file(text file). The configuration file is also bundled along with the midlet and deployed onto the mobile phone. Now I need to access the file and read its contents how do i do it. I tried it using FileConnection API and other methods, but in vain could not succeed. Given below is sample code form my application which i have written to access the file.
String url="file:///myfile.cfg" InputConnection con = (InputConnection)Connector.open(url)
When i try runnignthe application it gives "Malformed url" Exception.
I request one and all to kindly suggest me how do I solve this problem. It is required very urgently.