Hi,

I am having a problem with file access, using JSR75. I'm trying to open a file from the local file system (or create it if it doesn't exist), write some data to it and close it, however every time I try to run it (in the Sun J2ME Emulator), it asks for permission to access the file system, then hangs when permission is given. Can anyone help?

The code I am using is as follows:

try{
   FileConnection c = (FileConnection)Connector.open(target);
   if(!c.exists())
       c.create();
   PrintStream out = new PrintStream(c.openOutputStram());
   out.println("test";
   c.close();
}

Many Thanks,

Nick


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to