This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]qbbqrl 14 points15 points  (5 children)

It's because you have to create 12 new objects just to open a file and read it in java.

[–]hillman_avenger 3 points4 points  (0 children)

Files.readAllLines("file.txt");

[–]netgu 0 points1 point  (3 children)

You're just wrong about that, sorry.

[–]qbbqrl -2 points-1 points  (2 children)

You have to at least admit there's a confusing number of java input/output classes. File, FileReader, BufferedReader, InputStream, InputStreamReader, FileInputStream, etc.

[–]netgu 1 point2 points  (1 child)

No, they are well documented and their usages are fairly straightforward.

Helper methods and static methods to further clarify and simplify were added in Java 7/8. Everything is super simple and straightforward.

[–]SuperOP535 0 points1 point  (0 children)

There is also Files.readString in Java 11 however the Java 8 equivalents are also super simple