(String filename)
| 27 | public class Main { |
| 28 | // utility method to read a file and return as a String |
| 29 | public static String readFile(String filename) throws IOException { |
| 30 | return readStream(new FileInputStream(filename)); |
| 31 | } |
| 32 | |
| 33 | private static String readStream(InputStream stream) throws IOException { |
| 34 | // No real need to close the BufferedReader/InputStreamReader |