New improvements
This commit is contained in:
parent
863e40ba1c
commit
0abf40fded
@ -37,7 +37,7 @@ public class Main {
|
||||
null,
|
||||
lastOvertime == null ? "0:00" : lastOvertime
|
||||
);
|
||||
|
||||
|
||||
if(!starttimeTxt.exists()) {
|
||||
Utils.writeTextToFile(starttimeTxt, startTime);
|
||||
}
|
||||
|
@ -49,6 +49,10 @@ public class Utils {
|
||||
*/
|
||||
public static String readTextFromFile(final File file)
|
||||
throws IOException {
|
||||
if(!file.exists()) {
|
||||
//nothing to do
|
||||
return null;
|
||||
}
|
||||
return new String(Files.readAllBytes(file.toPath()));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user