Hacker News new | ask | show | jobs
by fauigerzigerk 3625 days ago
What's wrong with

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

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

?