title: Cant find the saved data to text file in internal storage, How to save file in internal storage android studio?
body: <p>I want to create a text file on my android phone and write some text into it. <br>
  When I click on the button it says <code>saved to /data/user/0/com.example.savetotextfile/files/example.txt</code> <br>
  But I can't find these folders. <br>
  Most apps are in Device storage > Android > data, but the apps that I created myself are not in there. <br>
  Am I missing a permission? <br>
  I don't want to write to an sd card. <br></p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      private static final String FILE_NAME = "example.txt";
  
      EditText editText;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          editText = findViewById(R.id.editText);
      }
  
      public void save(View v) {
          String text = editText.getText().toString();
          FileOutputStream fos = null;
  
          try {
              fos = openFileOutput(FILE_NAME, MODE_PRIVATE);
              fos.write(text.getBytes());
  
              editText.getText().clear();
              Toast.makeText(this, "Saved to" + getFilesDir() + "/" + FILE_NAME, Toast.LENGTH_LONG).show();
          } catch (FileNotFoundException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          } finally {
              if(fos != null) {
                  try {
                      fos.close();
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
              }
          }
      }
  }
  </code></pre>