I need to the find the extension of a file if i have the full filename in a sting.
To be more specific, if i have a filename such as file.exe, i need to know if it ends in .cpp
the only thing i can think of is to trim the string leaving on the last 4 characters, but i dont think thats possible in c++.
Any ideas?