every time I write loadChar(charVariable,positonOfCharacter)
with this code:
bool LoadEntity::loadChar(char * outputChar,int position)
{
ifstream file(nameOfFile.c_str());
if(!(file.good()))
return false;
file.seekg(position);
if(file.get())
{
* outputChar = file.get();
return true;
}
else
return false;
}`
I get this error: invalid conversion from 'char' to 'char*
The code is supposed to return bool if the function was ran correctly and change the value of char outputChar to character in file on int position. What causes this problem?