Android: Reading from file (Openfileinput)
<p>I am writing a basic notepad app for a unit at uni. I have created the main class with an editText which I save as string textOutput. </p>

<p>I have used the following code from the android developers website to save the string to a file:</p>

<pre><code>            FileOutputStream fos = openFileOutput(textOutput, Context.MODE_PRIVATE);
            fos.write(textOutput.getBytes());
            fos.close();
</code></pre>

<p>However, they say to read you use the following stages:</p>

<blockquote>
  <p>To read a file from internal storage:</p>
  
  <p>Call openFileInput() and pass it the name of the file to read. This returns a FileInputStream.
  Read bytes from the file with read().
  Then close the stream with close().</p>
</blockquote>

<p>What the hell does this mean, and who to I implement it into my app?</p>

<p>Please help.</p>
