xxxxxxxxxx
List<String> list = Arrays.asList("file1.txt", "file2.txt");
list.forEach(fileName -> {
try {
// Code that may throw an IOException
Path path = Paths.get(fileName);
byte[] fileBytes = Files.readAllBytes(path);
} catch (IOException e) {
e.printStackTrace();
}
});