public static String readFile(final String fileName) throws FileNotFoundException, IOException { try (FileReader reader = new FileReader(fileName)) { return readAll(reader); } }
public static String readFile(final File file) throws FileNotFoundException, IOException { try (final FileReader reader = new FileReader(file)) { return readAll(reader); } }
public static String readFile(final File file) throws FileNotFoundException, IOException { try (final FileReader reader = new FileReader(file)) { return readAll(reader); } }
public static String readFile(final String fileName) throws FileNotFoundException, IOException { try (FileReader reader = new FileReader(fileName)) { return readAll(reader); } }
public static String readURL(final URL fileURL) throws IOException { return readAll(new InputStreamReader(fileURL.openStream())); }
public static String readURL(final URL fileURL) throws IOException { return readAll(new InputStreamReader(fileURL.openStream())); }