mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-26 15:59:24 +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)
|
public static String readTextFromFile(final File file)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
if(!file.exists()) {
|
||||||
|
//nothing to do
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return new String(Files.readAllBytes(file.toPath()));
|
return new String(Files.readAllBytes(file.toPath()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user