File readlines
BufferedReader br = Files.newBufferedReader(Paths.get(filePath));
String output=br.lines().reduce((first,second)->second).orElse(null);
BufferedReader br = Files.newBufferedReader(Paths.get(filePath));
List<String>list=br.lines().collect(Collectors.toList());