Original Post
I''m working on a learning by doing opengl-c++ engine and I have to know how I can check whether a file is a jpg or a bitmap reading the extensions.
in vb is made by calling right$(filename,len(filename),3).
filename is clear. len gives the length of the string and 3 is the number of characters to get from the right.
who can I get those with c++?
