title: Android: How to store data on internal memory?
body: <p>It's perfectly described <a href="http://developer.android.com/guide/topics/data/data-storage.html#filesInternal" rel="noreferrer">here</a> how to do it, the only problem: He doesnt know the function <code>openFileOutput()</code>;</p>
  
  <pre><code>private void saveSettingsFile() {
            String FILENAME = "settings";
            String string = "hello world!";
  
            FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); //openFileOutput underlined red
            try {
              fos.write(string.getBytes());
              fos.close();
            } catch (IOException e) {
              Log.e("Controller", e.getMessage() + e.getLocalizedMessage() + e.getCause());
            }
  }
  </code></pre>
  
  <p>Those are the relevant packages I imported:</p>
  
  <pre><code>import java.io.FileOutputStream;
  import java.io.IOException;
  import android.content.Context;
  </code></pre>