Hello guys,i'm trying to write a String on a file,but there is no way i can get it done so far. I give you the code that i'm using so you can take a look:
I'm testing it on my N95 8GB,once i run my midlet it asks me if i want to allow mobile-application to read user data then if i press yes apparently it seems all done but whether i check Images folder there isnt log.txt and even if i put log.txt manually in that folder and then i run the midlet,it doesn't write the string in the log.txt file. Of course i'm giving permissions in the jad file :
FileConnection connection = (FileConnection)
OutputStream out = connection.openOutputStream();
PrintStream output = new PrintStream( out );
output.println( "This is a test." );
I cant really understand why this happens,does it have to do with signing the midlet? i hope not.
MIDlet-Permissions: javax.microedition.io.Connector.file.write, javax.microedition.io.Connector.file.read
Thank you guys.