1.均采用流的方式获取里面的内容
assets
context.getAssets().open(“fileName”);
raw
InputStream inputStream = context.getResources().openRawResource(R.raw.config);