// Import statement
   import java.io.*;

/**
 * The Cookie class performs basic file operations such as
 * creating a new file, updating a file, and reading a
 * file. It also demonstrates file deletion.
 * @auther
 * @version
 */

    public class Cookie{
   
   
       public void createCookie(String fileName,
                         String cookieValue) throws IOException{
      						 
      //Create a File object using the parameter fileName
      
      //Create a FileWriter object to enable writing to the file
      
      //Write the parameter cookieValue to the cookie file
      
      //Close the file
      
      }
   
       public void deleteCookie(String fileName) throws IOException{
      
      //Create a File object using the parameter fileName
      
      //Delete the actual file using the File object 
      
      }
   
       public void modifyCookie(String fileName,
                         String cookieValue) throws IOException{
      
      //Create a File object  using the parameter fileName
      
      //Create a FileWriter object to enable writing to the file
      
      //Write the cookie value
      
      //Close the file
      
      
      }
   
       public String readCookie(String fileName) throws IOException{
      
         String cookieVal = new String("");
      
      	//Create a File object
      
      	//Create a BufferedReader object to read the file
      
      	//Read the contents of the cookie file
         BufferedReader in = new BufferedReader(
                              new FileReader(fileName));
      	//Read the contents of the file. Use the variable cookieVal defined earlier
      	//Assume the file contains a single line
      
      	//Close the file
      
      	//Return the cookie value
         return cookieVal;
      
      }
   
   
   }


