Open NSBPittman opened 8 years ago
public static String readFileToString(String filename) throws FileNotFoundException{ Scanner scanner = new Scanner( new File(filename) ); scanner.useDelimiter("\A"); String text = scanner.next(); scanner.close(); return text; }
public static String readFileToString(String filename) throws FileNotFoundException{ Scanner scanner = new Scanner( new File(filename) ); scanner.useDelimiter("\A"); String text = scanner.next(); scanner.close(); return text; }