title: Android saving file to internal memory, something goes wrong
body: <p>I'm trying to save variables on a file, and it seems as though the saving process is fine, but it cannot find a string I saved. Can anyone help me?</p>
  
  <pre><code>EditText Strength;
  String getstrengthvalue;
  String filename = "file.txt";
  
  public void onSave(View view) {
  
      String string = "Hello world!";
      FileOutputStream outputStream;
  
      try {
          outputStream = openFileOutput(filename, Context.MODE_PRIVATE);
          outputStream.write(getstrengthvalue.getBytes());
          outputStream.close();
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  
  
  
  public void onLoad(View view) {
      try {
          InputStream is = openFileInput(filename);
          is.read(getstrengthvalue.getBytes());
          Strength.setText(getstrengthvalue);
      } catch (FileNotFoundException e) {
          e.printStackTrace();
      } catch (UnsupportedEncodingException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  </code></pre>