final static String[] parseCookieFile(String fname)
{
 String fail[]=null;
 try
 {
 String line,token;
 StringTokenizer st;

 DataInputStream dis=new DataInputStream(new BufferedInputStream(new FileInputStream(fname)));
 while ( (line = dis.readLine()) != null)
 {
      if(line.startsWith("#")) continue;
      st=new StringTokenizer(line);
      while(st.hasMoreTokens())
      {
        token=st.nextToken().toLowerCase();

        if(token.indexOf('*')>-1)
        {
        	System.out.println(new Date()+" [ERROR] Wildcards records are not supported in cookie_file");
        	continue;
        }
        else
        	if(token.equalsIgnoreCase("all")) { return null;}
        fail=addStringToArray(token,fail);
      }
 }
 dis.close();

 }
 catch (IOException ioe)
 {
	 System.out.println(new Date()+" I/O Error reading cookie file "+fname);
 }
 return fail;
}