mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 15:37:51 +01:00
New improvements
This commit is contained in:
parent
863e40ba1c
commit
0abf40fded
@ -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