Fixed csv

- added examples.csv
- fixed csv logic for header and first line
This commit is contained in:
2025-01-30 11:46:25 +01:00
parent 5e5b51e38c
commit 8c349d6eec
8 changed files with 5045 additions and 10 deletions

View File

@@ -151,4 +151,16 @@ public class Parameters {
throw new IllegalArgumentException("Invalid arguments");
}
}
/**
* Get the file or the example file if it is present.
*
* @param file the file to get
* @return the file or the example file
*/
public static String getFileOrExample(String file) {
if (file.startsWith("example"))
file = Main.class.getClassLoader().getResource(file).getPath();
return file;
}
}