   import java.io.*;
   import java.util.*;
   import java.lang.reflect.Array;
/***********************************************
 *	To show important dates that are on the same
 * month and day as today
 *
 * @author - Jacob Ewers
 * @version - V2 - 01/23/07
 * Lab 4
 * Section 1
 ************************************************/
    public class IO_ewersjl_Remember
   {
      private static Scanner        dateScanner;
      private static PrintWriter    screen;
   /***********************************************
   *	To determine what today is
   *
   *	@param args - a file that has dates in it
   ************************************************/
       public static void main(String[] args)											 												
      {
         GregorianCalendar           today;			//today's Date			
         File							  dates;       //imported files
      
         today    = new GregorianCalendar();
         screen   = new PrintWriter(System.out);
      
         screen.printf(Locale.US, "\nToday's Date: %1$te %1$tB %1$tY\n", today); //posts today's date
         screen.flush();       
       
        
         try
         {
         	//a loop to use the command line arguments
            for(int index = 0; index < args.length; index++)
            {	
               dates	 = new File(args[index]);	//brings in dates
               dateScanner = new Scanner(dates);
            
               processDates(today);
            }
         }
             catch(FileNotFoundException fnfe)
            {	
               System.out.println("The file was not found. ");
            }
      }
   /***********************************************
   * To show important dates that are on the same
   * month and day as today
   *
   *	@param today - today's date
   ************************************************/
       private static void processDates(GregorianCalendar today)
      {
         int           day, month;              
         String        name;
       
      
       // Use the '\t' (tab) and '/' characters as delimiters
        
         dateScanner.useDelimiter("[\t/]");
         
          
         while (dateScanner.hasNext())
         {
            month = dateScanner.nextInt();
            day   = dateScanner.nextInt();
            name  = dateScanner.nextLine();
            
            if ((month == (today.get(Calendar.MONTH)+1)) && 
               (day   == today.get(Calendar.DAY_OF_MONTH)))
            {
               screen.printf("%s\n", name);
               screen.flush();
            }
         }
         
      }
    
   
   }
