Skip to content

Commit 7462e83

Browse files
ChristophBodensteinChristophBodenstein
ChristophBodenstein
authored and
ChristophBodenstein
committed
write header if logfilesize <= 100 byte
1 parent 1f85ff5 commit 7462e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TimeNETOptimizationEnvironment/src/toe/support.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ public static void addLinesToLogFileFromListOfParser(ArrayList<SimulationType> p
641641
}
642642

643643
File f = new File(logFileName);
644-
if (!f.exists()) {
644+
if (!f.exists() || (f.length() <= 100)) {
645645
writeHeader = true;
646646
}
647647
FileWriter fw = new FileWriter(logFileName, true);

0 commit comments

Comments
 (0)