Bonjour à tous,

Voici mon code :


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
 
	public void Ecrire(Context context, String data){
		FileOutputStream fOut = null; 
	 	 OutputStreamWriter osw = null;
 
	 	 try{
	 	  fOut = context.openFileOutput("jeanjean6.txt", Context.MODE_APPEND);       
	       osw = new OutputStreamWriter(fOut); 
	       osw.write(data); 
	       osw.flush(); 
	       Toast.makeText(context, "Settings saved",Toast.LENGTH_SHORT).show();
	       } 
	       catch (Exception e) {       
	       e.printStackTrace(); 
	       Toast.makeText(context, "Settings not saved",Toast.LENGTH_SHORT).show();
	       } 
	       finally { 
	          try { 
	                 osw.close(); 
	                 fOut.close(); 
	                 } catch (IOException e) { 
	                 e.printStackTrace(); 
	                 } 
 
	}
	}
J'écris à la suite de mon fichier.
J'ai cependant 2 questions :

1-Sur mon device Android où trouver ce fichier créé ?
2-Comment supprimer ce fichier ?

Merci à vous !