title: Where to find file that is written by FileOutputStream?
body: <p>I am trying to use <code>FileOutputStream</code> to create a text file that will write data into it (saving to internal storage). However, it doesn't even generates the text file. I tried finding the text file using DDMS every single time I test run my codes but it's not there. I can't find the package name folder in the /data/data directory. I am clueless why it is not working as Eclipse didn't complain about any errors with my code too.</p>
  
  <p>Code:</p>
  
  <pre><code>public void saveGroup(String grpName)
  {
      try
      {
          FileOutputStream fos = openFileOutput("data.txt", MODE_PRIVATE);
          OutputStreamWriter osw = new OutputStreamWriter(fos);
  
          Team newTeam = new Team(grpName, memberList);
          String s = newTeam.name + "|" + newTeam.getMembers();
  
          osw.write(s);
          osw.flush();
          osw.close();
  
          invalidCharacterToast("Saved");
      }
      catch(IOException e)
      {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>**Team is a class that I have created myself.</p>