adjustments

This commit is contained in:
Joshua Perry 2023-02-05 18:13:14 +00:00
parent cbca6e1598
commit a1b5eace7f
2 changed files with 3 additions and 3 deletions

View File

@ -155,14 +155,14 @@ public class CompetitorList {
return hS; return hS;
} }
public File createReportFile() throws IOException { public File createReportFile(String pathString) throws IOException {
boolean exists; boolean exists;
int count = 0; int count = 0;
Path path; Path path;
FileWriter report = null; FileWriter report = null;
do { do {
path = Path.of("src/main/resources/com/r0r5chach/report"+count+ ".txt"); path = Path.of(pathString+"/report"+count+ ".txt");
exists = Files.exists(path); exists = Files.exists(path);
if(exists) { if(exists) {

View File

@ -37,7 +37,7 @@ public class Manager extends Application {
@Override @Override
public void stop() { public void stop() {
try { try {
competitors.createReportFile(); competitors.createReportFile("src/main/resources/com/r0r5chach");
} }
catch (IOException e) { catch (IOException e) {
createErrorLog(e, "src/main/resources/com/r0r5chach/log.txt"); createErrorLog(e, "src/main/resources/com/r0r5chach/log.txt");