Very simple question with strings

So I want to throw out data from a file with certain values, but I have to use a sting to represent the data (most is numerical but not all), but when I try
1
2
if (input="1")
{return true;}
in a Boolean function I am told I can not equate input (my string)and "1". What am I doing wrong and how might I fix it?
I don't really understand what you want, but I know that on line one you need to use "==" and not "=".
Thank you, I just had a file with a header that could be identified by all of the values being either 1 or zero and that being the only place where that would be the output, so I just needed to remove them.
cool. and if you're username is related to the physicist it's spelt "Feynman" :)
Topic archived. No new replies allowed.