code: public static String readTextFile(Context context, int resId) {
  		InputStream inputStream = context.getResources().openRawResource(resId);
  		
  		return readText(inputStream);
  	}
docs: Read text file.
  
  @param context the context
  @param resId the res id
  @return the string