title: java.io.FileNotFoundException Save/Load in internal storage android
body: <p>I'm trying to save data from the app to internal storage and load it back, but I feel like I miss something and the file is not found in the load.</p>
  
  <p>Save code:</p>
  
  <pre><code>private void saveScanData(List&lt;MyStack&gt; surf) throws IOException {
      Log.i(TAG, "Saving");
      String filename = String.format("Scan%05d.data", scanNumber);
      scanNumber += 1;
      ObjectOutput out;
  
      File outFile = new File(Environment.getExternalStorageDirectory(), filename);
      out = new ObjectOutputStream(new FileOutputStream(outFile));
  
      out.writeObject(surf);
      out.close();
  }
  </code></pre>
  
  <p>Load code:</p>
  
  <pre><code>public void load(View view) {
      ObjectInput in;
      List&lt;MyStack&gt; surf= null;
      try {
          in = new ObjectInputStream(new FileInputStream("Scan%05d.data"));
          surf= (List&lt;MyStack&gt;) in.readObject();
          in.close();
      } catch (Exception e) {e.printStackTrace();}
      Model model= new Model(surf);
  
      Intent intent = new Intent(this, EditorPresenter.class);
      intent.putExtra("model", model);
      startActivity(intent);
  }
  </code></pre>
  
  <p>Thank you for any help.</p>