1

I dont know how to find the txt archive in android. FileOutputStream textoFIS = openFileOutput("agenda.txt", MODE_PRIVATE);

tomerpacific
  • 4,704
  • 13
  • 34
  • 52
  • 1
    Do you want to know where the file exists? Or where to put the file? – tomerpacific Dec 17 '18 at 10:54
  • Welcome to Stack Overflow. Please take the time to write a full description of what you are trying to accomplish. Short descriptions only lead to more questions. Guidelines to help: [How to Ask](https://stackoverflow.com/help/how-to-ask). Cheers! – Elletlar Dec 17 '18 at 10:57
  • Tomer Pacific, yes that is what i want. Thanks. – aimar peruchena Dec 17 '18 at 11:04
  • Possible duplicate of [Getting file path for local Android project files](https://stackoverflow.com/questions/13616876/getting-file-path-for-local-android-project-files) – tomerpacific Dec 17 '18 at 11:20

1 Answers1

0

If you want to put a file in your Android project, then you need to add it to your project's root directory.

Then, you can get the path for it by using :

File file = new File("YourFileName.txt");
String filePath = file.getAbsolutePath();
tomerpacific
  • 4,704
  • 13
  • 34
  • 52