context.getResources().openRawResource() crashes the app
===

I'm trying for a while to make android read from a text file that I already have in the R.raw folder.

I have the function void readfile(Context context) that contains the line 

    InputStream is = context.getResources().openRawResource(R.raw.data);

However when I try to run the app it crashes at that exact line. Can you tell me a workaround? Or another way to read from that file?