I tried in the c++ forum but no one apparantly knows what to do.
strlen() requires a const char, as in... strlen( const char );
so, what do you do if you have a char* ?
is there a way to get the text the pointer points to in to a const char?
This is what I am trying to do...
I need an array, lets say cText[256], to hold all the text in a text file. And I need to find strlen( cText ).
but cText becomes a pointer when opening a file stream to it, and you can't use that in strlen(). I get a compile error about how I can't convert from char* to const char.
No one responded to me in c++ programming forum, This is depressing, lol. Someone help me.
If what I want can't be done exactly as I need, what are my alternatives?