Hey guys. I have a string:
char shortpath[1000];
That string above is a filepath. What I want to do is figure out the files extension. In order to do this I'm guessing I would have to find the last 4 chars of the string. Then I would compare the last 4 chars with an extension like ".mp3", therefore confirming the file is an mp3. How exctly would I get those last 4 chars from it? I'm a C++ noob and I have treid for hours and not succeded. Thanks.