public static String getRawResourceAsString(final Context context, @RawRes final int resId) {
        final StringBuilder content = new StringBuilder();
        try (BufferedReader is = new BufferedReader(new InputStreamReader(context.getResources().openRawResource(resId)))) {
            String line;
            while ((line = is.readLine()) != null) {
                content.append(line).append("\n");
            }
        } catch (IOException ignored) {
        }
        return content.toString();
    }
Returns the available space in bytes on the mount point used by the given dir.
main/src/main/java/cgeo/geocaching/utils/FileUtils.java