Hacker News new | ask | show | jobs
by zbjornson 3628 days ago
Yeah, .net is way nicer than java and your argument holds pretty well in that case.
1 comments

What's wrong with

  new String(Files.readAllBytes(path));
or

  new String(Files.readAllBytes(path), StandardCharsets.UTF_8);

?