Browse Source

added while loop that iterates through file

master
Leon Montag 2 years ago
parent
commit
c45f034b75
  1. 7
      src/main/java/game/runGame.java
  2. BIN
      target/MiniGameProject-1.0-SNAPSHOT.jar
  3. 2
      target/maven-archiver/pom.properties

7
src/main/java/game/runGame.java

@ -18,6 +18,13 @@ public class runGame {
try {
reader = new BufferedReader(new FileReader(Path));
String line = reader.readLine();
int i = 0;
while (line != null) {
Arr[i] = line;
line = reader.readLine();
i++;
}
reader.close();
} catch (IOException e) {
e.printStackTrace();
}

BIN
target/MiniGameProject-1.0-SNAPSHOT.jar

2
target/maven-archiver/pom.properties

@ -1,5 +1,5 @@
#Generated by Maven
#Fri Dec 30 11:32:52 CET 2022
#Fri Dec 30 11:35:26 CET 2022
groupId=MiniGameProject
artifactId=MiniGameProject
version=1.0-SNAPSHOT
Loading…
Cancel
Save