Error calling getResources().openRawResource()
<p>I have to read a file called <code>hello.txt</code> using the following code on java/eclipse/android:</p>

<pre><code>import java.io.InputStream;

public class Tokenirzer {
    public String ReadPath () {

        InputStream inputStream = getResources().openRawResource(R.raw.hello);
    }
}
</code></pre>

<p>However I get the following error:</p>

<blockquote>
  <p>The method getResources() is undefined for the type Tokenirzer</p>
</blockquote>

<p>What am I doing wrong?</p>
