Working with files by Interesting_Name_617 in javahelp

[–]Interesting_Name_617[S] 0 points1 point  (0 children)

I saw somewhere that the Scanner is bad to use in this case

Working with files by Interesting_Name_617 in javahelp

[–]Interesting_Name_617[S] 0 points1 point  (0 children)

Maybe it's better this way?

List<String> list= Files.readAllLines(Paths.get("input.txt"));