Bad code using ethernet shield

Hello,

I’m reading a web page that has only one character on it, a Y or N. I know there’s header stuff comes through as well so I dump the first eight lines.
However, I get an error in my code around the ==“Y” bit below: error: ISO C++ forbids comparison between pointer and intege

This is the relevant bit:

int foo=0;
  while (foo<8) {  //dump unwanted lines
    while (client.read() != '\n') { }
    foo++;  
  }
  if (client.read() == "Y") {
    return true;
  } else {
    return false; 
  }

It’s inside a function. I want the function to return true if the website says Y.

Any ideas? I don’t understand how it can be fine with the != “\n” and not happy with ==“Y”

I've figured it out - there's a difference between ' and "

Well that's my new thing of the day learnt!