public static void main(String[] args) { if (args.Length < 1) { System.Console.WriteLine("Use:"); System.Console.WriteLine(" OldExcelExtractor <filename>"); return; } OldExcelExtractor extractor = new OldExcelExtractor(new FileInfo(args[0])); System.Console.WriteLine(extractor.Text); extractor.Close(); }