/** * Really basic text extractor, that will also return lots of crud text. * Takes a single argument, the file to extract from */ public static void main(String args[]) throws IOException { if(args.length < 1) { System.err.println("Useage:"); System.err.println("\tQuickButCruddyTextExtractor <file>"); System.exit(1); } String file = args[0]; QuickButCruddyTextExtractor ppe = new QuickButCruddyTextExtractor(file); System.out.println(ppe.getTextAsString()); ppe.close(); }
/** * Really basic text extractor, that will also return lots of crud text. * Takes a single argument, the file to extract from */ public static void main(String args[]) throws IOException { if(args.length < 1) { System.err.println("Useage:"); System.err.println("\tQuickButCruddyTextExtractor <file>"); System.exit(1); } String file = args[0]; QuickButCruddyTextExtractor ppe = new QuickButCruddyTextExtractor(file); System.out.println(ppe.getTextAsString()); ppe.close(); }