I'm getting conversion errors 2446 and 2040 on the red line. Can anyone help me figure out what i've done. I'm new to C++ but I'm expereinced in C# so I do have some foundation. Any help is greatly appreciated!
string GetString(ifstream & fn, string & s, int length)
{
int charCount;
char ch;
s.erase();
for(charCount = 0; charCount < length; charCount++)
{
// Stop if there are fewer characters to be read than expected
[B]if(fn.peek() == "\n" || fn.peek() == EOF)[/B]
break;
else
{
ch = fn.get(); // Read next character including blanks
s = s + ch; // and append it to the string
} // end else
} // end for that reads in characters
return s;
} // end function GetString