Salut, je suis nouveau sur ce forum, j'ai chercher mais g pas trouver la reponse a mon prob... j'essais de cree un fichier(data.txt) dans le repertoir other, mais il y a des erreurs...
try {
FileConnection fconn = (FileConnection)Connector.open("file:///c:/other/myfile.txt");
// If no exception is thrown, then the URI is valid, but the file may or may not exist.
if (!fconn.exists())
fconn.create(); // create the file if it doesn't exist
fconn.close();
}
catch (IOException ioe) {
}
Il me donne des erreurs aux lignes:
if (!fconn.exists()){
fconn.create();
est-ce que, quelqu'un sait pk?
merci d'avence
Partager