Bonsoir,
Je souhaiterai savoir si il existe avec androïde un moyen de créer un fichier de type "propertie" ou "ini"?
J'ai essayé avec ce code (tiré d'une appli java)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
  if(!new File("config.properties").exists()){
	         File  file = new File("config.properties");
	           file.createNewFile();
	                Properties config = new Properties();
	                FileInputStream fis = new FileInputStream("config.properties");
	                config.load(fis);
	                config.setProperty("Chemin1", "rien");
	                config.setProperty("Chemin2", "rien");
	                FileOutputStream fos = new FileOutputStream("config.properties");
	                config.store(fos,null);
 
  }
Mais le fichier ne se crée pas.