Because I can not locate my .txt file. Here is the code:
public void criatxt() {
String texto = "XXX";
try {
String filePath = this.getFilesDir().getPath().toString()
+ "/meuarquivo.txt";
File f = new File(filePath);
PrintWriter arq = new PrintWriter(f);
System.out.println("Salvou");
arq.print(texto);
arq.close();
} catch (Exception er) {
er.printStackTrace();
System.out.println("Salvou: " + er.getStackTrace());
}
}
Thank you in advance!