import java.nio.charset.StandardCharsets;import java.nio.file.Files;import java.nio.file.Paths;
Java 7
String content = new String(Files.readAllBytes(Paths.get("readMe.txt")), StandardCharsets.UTF_8);
Java 11
String content = Files.readString(Paths.get("readMe.txt"));