BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(getAssets().open("filename"))); while (true) { String line = reader.readLine(); if (line == null) { break; } } } catch (IOException e) {} finally {if (reader != null) {try {reader.close();} catch (IOException e) {}}}
댓글 없음:
댓글 쓰기