This commit is contained in:
Daniella 2022-07-23 09:13:40 +02:00
parent 913c38b527
commit 2b66678e8f

View file

@ -1848,7 +1848,6 @@ public class ISBPL {
}
private static String readFile(File f) throws IOException {
//noinspection resource
FileInputStream fis = new FileInputStream(f);
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
byte[] currentBytes = new byte[4096];
@ -1856,6 +1855,7 @@ public class ISBPL {
while ((len = fis.read(currentBytes)) > 0) {
bytes.write(currentBytes, 0, len);
}
fis.close();
return bytes.toString();
}