Hi guys, I'm trying to make a connection with a file on memory card but it don't work..
I'm trying still with the emulator and the code is:
I have also triedCode:String url="file:///E:/folder1/folder2/data.aaa"; InputStream is = null; FileConnection fc = null; fc = (FileConnection) Connector.open(url); is = fc.openInputStream(); DataInputStream din = new DataInputStream(is); System.out.println("aviable: "+din.available());
orCode:String url="file:///E:/folder1/folder2/data.aaa"; InputStream is = Connector.openInputStream(url); DataInputStream din = new DataInputStream(is); System.out.println("aviable: "+din.available());
The problem is that return always 0!Code:String url="file:///E:/folder1/folder2/data.aaa"; InputStream is = Connector.openInputStream(url); System.out.println("aviable: "+is.available());
What I can try to solve this?
Thanks

Reply With Quote

