Browse Source

add Basic BufferedReader for counting Lines Method

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

11
src/main/java/game/runGame.java

@ -9,8 +9,19 @@ public class runGame {
public static String AnswersPath = "QandA/Answers.txt";
public void run() {
CountFileLines(QuestionsPath);
readFile(QuestionsPath);
}
public long CountFileLines(String Path) {
try {
BufferedReader reader = new BufferedReader(new FileReader(Path));
} catch (IOException e) {
e.printStackTrace();
}
return 0;
}
public static String[] readFile(String Path) {
BufferedReader reader;

BIN
target/MiniGameProject-1.0-SNAPSHOT.jar

2
target/maven-archiver/pom.properties

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