// 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{

      //1. Create a File object using the parameter fileName

      //2. Create a FileWriter object to enable writing to the file

      //3. Write the parameter cookieValue to the cookie file

      //4. Close the stream

   }

	public String readCookie(String fileName) throws IOException{

        String cookieVal = new String("");

      	//Create a File object
      	File myFile = new File(fileName);
      	//Create a BufferedReader object to read the file
        BufferedReader in = new BufferedReader( new FileReader(myFile));

      	//1. Read the contents of the file. Use the variable cookieVal
      	//defined at the beginning of this method.
      	//Assume the file contains a single line


		//2. Close the stream


      	//Return the cookie value
         return cookieVal;

      }

   public void deleteCookie(String fileName) throws IOException{

      //1. Create a File object using the parameter fileName

      //2. Delete the actual file using the File object


   }


}
