code: public static String readTextFile(Context context, int resourceId) {
          InputStream inputStream = context.getResources().openRawResource(
                  resourceId);
          return readTextFile(inputStream);
      }
docs: Read a text file resource into a single string
  
  @param context
  A non-null Android Context
  @param resourceId
  An Android resource id
  @return The contents, or null on error.