|
@ -7,4 +7,21 @@ import java.io.IOException; |
|
|
public class runGame { |
|
|
public class runGame { |
|
|
public static String QuestionsPath = "QandA/Questions.txt"; |
|
|
public static String QuestionsPath = "QandA/Questions.txt"; |
|
|
public static String AnswersPath = "QandA/Answers.txt"; |
|
|
public static String AnswersPath = "QandA/Answers.txt"; |
|
|
|
|
|
|
|
|
|
|
|
public void run() { |
|
|
|
|
|
readFile(QuestionsPath); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static String[] readFile(String Path) { |
|
|
|
|
|
BufferedReader reader; |
|
|
|
|
|
String[] Arr = new String[6]; |
|
|
|
|
|
try { |
|
|
|
|
|
reader = new BufferedReader(new FileReader(Path)); |
|
|
|
|
|
String line = reader.readLine(); |
|
|
|
|
|
} catch (IOException e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
return Arr; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |