dont know how to write a file

hi i have found many examples for how to create a file but the just create an empty file, how can i write a text file?
[125 byte] By [eckoa] at [2007-11-27 2:46:02]
# 1

the problem now is the next:

when trying to create a file the application stops, freeze in the part when asking for permissions...

try{

FileConnection fc = (FileConnection)Connector.open("file:///" + actualdir + textField1.getString(), Connector.WRITE);

fc.create();

fc.close();

}

catch (Exception ex){

}

eckoa at 2007-7-12 3:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
are you trying to only use jsr-75 file connection? or are ok with using recordstores?
pandora_fooa at 2007-7-12 3:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

Creating a new file, opening it and writing the text into the file have been explained in the following link. I think it could be useful. It works well. I have tried it out.

http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_jsr75_accessing_pim_fileconnectionapi.jsp

parisaa at 2007-7-12 3:14:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...