I'm not familiar enough with .NET to know the exact operator(s) you need, but as I understand things, "String^ line" is a pointer to a string, it is not an actual string. Try to de-reference the pointer when you do your comparison.
That's just my 2-cents. Take it how you like.
Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393
Like I said, I'm not that familiar with .NET. All I can do is mention some general concepts and see if they spark something for you. AFAIK, that is a correct declaration...
I was actually referring to Lines 13 and 17.
[edit]
Oops, overlapped with a much better answer...
Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393