(String fileId)
| 355 | } |
| 356 | |
| 357 | public Output readFile(String fileId) { |
| 358 | File f = getFile(fileId); |
| 359 | try (Stream<String> stream = Files.lines(f.toPath())) { |
| 360 | return new Output(stream.toArray(String[]::new)); |
| 361 | } catch (IOException | UncheckedIOException e) { |
| 362 | return new Output(new String[0]); |
| 363 | } |
| 364 | } |
| 365 | } |
no test coverage detected