title: Problems writing to file android
body: <p>I'm trying to save some data to A file in android, I'm using herefor the internal storage of the android system. I looked it up on the developers guide of android and I came to this.</p>
  
  <pre><code>String FILENAME = "LangFile";
                  String data ="NL";
                  FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
                  fos.write(data.getBytes());
                  fos.close();
  </code></pre>
  
  <p>This is how I save it to the file.</p>
  
  <pre><code>String FILENAME = "LangFile";
          String languege = "lang";
          FileInputStream fos = openFileInput(FILENAME);
          fos.read(languege.getBytes());
          fos.close();
          if(languege=="NL"){
              newgame.setText(R.string.dutchgames);
              stats.setText(R.string.duthstats);
          }
  </code></pre>
  
  <p>This is how I read from the same file, but if I run it it just gives an empty button?</p>