📅  最后修改于: 2022-03-11 14:52:17.559000             🧑  作者: Mango
FileHandle handle = Gdx.files.local("words.txt");
String text = handle.readString();
String wordsArray[] = text.split("\\r?\\n");
for(String word : wordsArray) {
words.add(word);
}