   import java.io.*;//import inputOutput class
   import java.util.*;//import util Class
/*******************************************************************
 *Computing often involves the need to process input from a file and 
 *output data to a file. This lab will provide practice in reading 
 *from and writing to files.
 *******************************************************************/
 
 /*************************
  * I have received no assistance
  *
  *
  *Vinicent Holland
  *January 21, 2007
  *InputOutput V1
  *Section 1
  **************************/



    public class IO_hollanvx_Remember
   {
      private static Scanner        dateScanner;//declaration of Scanner
      private static PrintWriter    screen;//
    
   
   
       public static void main(String[] args)
      {
         GregorianCalendar        today;// declaration
         String                   name; //declaration, holds a filename 
         File 							dates; //file variable
      
       
         today    = new GregorianCalendar();//instantiation of 'today'
         screen   = new PrintWriter(System.out); // instantiation of 'screen'
      	
         
         for(int x = 0; x < args.length; x++)
         {
            dates = new File(args[x]);
				
         
         
         
            screen.printf(Locale.US, "\nToday's Date: %1$te %1$tB %1$tY\n", today);//display today's date
            screen.flush();       
         	
            try
            {
               dateScanner = new Scanner(dates);//dateScanner is a reader of files
            }//end of try
            
                catch(FileNotFoundException fnfe)
               {
                  System.out.println("The file that you were attempting to use can not be found.");
               }//end of catch
         
            processDates(today);
         }
      }//end of main
    
   
   
       private static void processDates(GregorianCalendar today)
      {
         int           day, month;//declaration , integer attributes              
         String        name;//declaration, string 'name' attribute
       
      
       // 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();
            }//if statement's end
         }//end of while loop
      }//end of processDates method
    
   
   }//end of class
