标签:style blog color io ar 文件 sp div on
/** * @param fileName * @return assets中文件的字符串 */ public String getFromAssets(String fileName){ String result=""; try { InputStreamReader inputReader = new InputStreamReader( getResources().getAssets().open(fileName) ); BufferedReader bufReader = new BufferedReader(inputReader); String line=""; while((line = bufReader.readLine()) != null) { result += line; } } catch (Exception e) { e.printStackTrace(); } return result; }
标签:style blog color io ar 文件 sp div on
原文地址:http://www.cnblogs.com/tianzhijiexian/p/4020255.html