how can i read the last letter of a input file? 2011

Sponsored Links

here is the code that i was written can any one help me in this code

while(input>>lastChar) //put file contents into lastChar
{
input.seekg(ios::end,lastChar); //go to the end of file
if(lastChar=='+' || lastChar=='*') //check if it is + or *
{
badInput=true;
goto skip;
}
else
{
cout<<"true file"<<endl;
goto startHere;
}
}