title: Android Saving a file to internal memory works while to Sd card fails
body: <p>I have an Android app where I need to save a file.
  I create the file like this:</p>
  
  <pre><code>FileOutputStream fOut = openFileOutput(fileName, 
                      MODE_WORLD_READABLE);
              osw = new OutputStreamWriter(fOut);
  </code></pre>
  
  <p>I open it like this:</p>
  
  <pre><code>FileInputStream srcFileStream = openFileInput(fileName);
  </code></pre>
  
  <p>This works fine with internal memory files.
  I've added a prefrences to my app, where the user can select to save the file to the sd card instead.
  I try this command:</p>
  
  <pre><code>if (Prefs.getCard(this))
          fileName="/sdcard/"+fileName;
  </code></pre>
  
  <p>Meaning that if the Prefrences is yes, I add "/sdcard/" infront of the file name.
  The rest of the code remains the same,</p>
  
  <p>This does not seem to work, as I get an Exception:</p>
  
  <pre><code>File /sd/file1 contains a path seperator
  </code></pre>
  
  <p>How can I use the same code for both saving to SD card and to internal memory, with just a small modification as i tried above?</p>