22 lines
330 B
Plaintext
22 lines
330 B
Plaintext
![]() |
[source,java]
|
||
|
----
|
||
|
public String readFile(File f) throws IOException {
|
||
|
return readFromDisk(f);
|
||
|
}
|
||
|
----
|
||
|
|
||
|
or
|
||
|
|
||
|
[source,java]
|
||
|
----
|
||
|
public String readFile(File f) throws IOException {
|
||
|
String content;
|
||
|
try {
|
||
|
content = readFromDisk(f);
|
||
|
} catch (IOException e) {
|
||
|
logger.LogError(e);
|
||
|
throw e;
|
||
|
}
|
||
|
return content;
|
||
|
}
|
||
|
----
|