회사는 정말 싫어욧



InputStream is = getResources().openRawResource(R.raw.flag_names);
Scanner sc = new Scanner(is,"UTF-8");
int i = 0;

while (sc.hasNextLine()) {
Item item = new Item();
item.setImageID(R.drawable.flag_afghanistan + i);
item.setFlagName(sc.nextLine());
list.add(item);
i++;
}


Scanner와 Scanner의 nextLine, hasNextLine을 이용


그냥 gson쓰자