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;
}
public File createReportFile() throws IOException {
public File createReportFile(String pathString) throws IOException {
boolean exists;
int count = 0;
Path path;
FileWriter report = null;
do {
path = Path.of("src/main/resources/com/r0r5chach/report"+count+ ".txt");
path = Path.of(pathString+"/report"+count+ ".txt");
exists = Files.exists(path);
if(exists) {

View File

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