how to create file using j2me?
Submitted by emanhossny on Sun, 2006-03-19 07:00.
salamu alikom
-did any one know how to create file using j2me?
i write the following code & it executed without any error or exception
but when i go to see the file i didn't find it(this means it isn't created)
String path="file:///root1/mytxt.txt";
FileConnection fc=(FileConnection)Connector.open(path);
if(!fc.exists())
fc.create();
DataOutputStream dos = fc.openDataOutputStream();
dos.write(post_msg,0,post_msg.length);
dos.close();
fc.close();
-did any one know an emulator which ca recore amr voice??
Gazakom Alllah 7'iran






change the path
yes the problem is in the path but..
a very good link
See this from Nokia Forum about FileConnection API (JSR 75)
example of url in real deplyment "file:///C:/Nokia/Images/Image(001).jpg", and both my previous reply and Abeer reply worked correctly on the emulator.
Shimaa