Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

libgdx load file

  FileHandle handle = Gdx.files.local("words.txt");
  String text = handle.readString();
  String wordsArray[] = text.split("
?
");
  for(String word : wordsArray) {
      words.add(word);
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #libgdx #load #file
ADD COMMENT
Topic
Name
7+8 =