From 3e48d8fd4f9b22d1e16c6b943bd01750155b7759 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 11:46:17 +0100 Subject: [PATCH] add Basic BufferedReader for counting Lines Method --- src/main/java/game/runGame.java | 11 +++++++++++ target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 5796 -> 5898 bytes target/maven-archiver/pom.properties | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/game/runGame.java b/src/main/java/game/runGame.java index 264a37e..3f0fb1e 100644 --- a/src/main/java/game/runGame.java +++ b/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; diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index c6ca702349ac993dc2d9e93bb4098cf2c9e12403..8791b16cdc826e81a2e602ef1e9c8d9324e5956b 100644 GIT binary patch delta 1320 zcmZ3Y+oi`7;LXg!#Q*~9Vkh#bGOdlBXgmuw$j8#^x)ECnT4fV6vQranv$2Lnij z=As@|Pi6*&^{kT>7$xdULv9BNI||r3Psw(#8mltZ&_+iQ08~3I-Xv~i8QfgY!S3jeXPlD;# zte=;(cJV$p3vWEf&b#{EP1EId_rF|YowU?;$EN4E&fRk9VJKvd_24*?p3QrFcWU_B zNpB-c8%w?=IJ{fO<0<8_&|TqC)U&Q0ffHMb>dG!GTO7V1eCFGzk8a7OSBut8Z9lRx zMz%I(XSG^kZ8cB(1$|Y?AN(tqN?fw2*Ro|}4Qgap{8KRRwZ*aK*w26V?lc$8cJ>lJ zEZ`?$p?US)ErnU(-_D%sc3&5{v1HD#<*apPGqsWxx?=+Nhj=egpPj9mFQv@JC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