|
@ -9,8 +9,19 @@ public class runGame { |
|
|
public static String AnswersPath = "QandA/Answers.txt"; |
|
|
public static String AnswersPath = "QandA/Answers.txt"; |
|
|
|
|
|
|
|
|
public void run() { |
|
|
public void run() { |
|
|
|
|
|
CountFileLines(QuestionsPath); |
|
|
readFile(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) { |
|
|
public static String[] readFile(String Path) { |
|
|
BufferedReader reader; |
|
|
BufferedReader reader; |
|
|