   import java.io.*;       
   import java.util.*;             

    public class ClientTest {
      private  Formatter output;
       public void OpenFile()
      { 
         try
         {    	   
            output=new  Formatter("name.txt");
         }//end try
             catch (SecurityException S)
            {
               System.err.println("you dont have write access to this file.");
            }//end catch
             catch(IOException ioException)
            {
               System.err.println("Error opening file");
					               System.exit(1);

            }//end catch IOException
      }//end open file
   		
   		
       public void addRecords()
      {
      //I do not know what should I write here
      		
      		
      }
       public void closeFile()
      {
         try
         {
            if(output != null)
               output.close();
         }//end try
             catch(Exception e)
            {
               System.err.println("Error closing file");
               System.exit(1);
            }//end catch
      }//end close file
   }//end class
	